Skip to content

Commit 99c0894

Browse files
committed
Fix memory leak after refactor
1 parent 44af0ab commit 99c0894

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

wolfcrypt/src/asn.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33617,6 +33617,9 @@ void FreeDecodedCRL(DecodedCRL* dcrl)
3361733617

3361833618
while(tmp) {
3361933619
RevokedCert* next = tmp->next;
33620+
#if defined(OPENSSL_EXTRA)
33621+
XFREE(tmp->extensions, dcrl->heap, DYNAMIC_TYPE_REVOKED);
33622+
#endif
3362033623
XFREE(tmp, dcrl->heap, DYNAMIC_TYPE_REVOKED);
3362133624
tmp = next;
3362233625
}

0 commit comments

Comments
 (0)