Skip to content

Commit 9c822d7

Browse files
committed
Fix memory leak after refactor
1 parent b923241 commit 9c822d7

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
@@ -33615,6 +33615,9 @@ void FreeDecodedCRL(DecodedCRL* dcrl)
3361533615

3361633616
while(tmp) {
3361733617
RevokedCert* next = tmp->next;
33618+
#if defined(OPENSSL_EXTRA)
33619+
XFREE(tmp->extensions, dcrl->heap, DYNAMIC_TYPE_REVOKED);
33620+
#endif
3361833621
XFREE(tmp, dcrl->heap, DYNAMIC_TYPE_REVOKED);
3361933622
tmp = next;
3362033623
}

0 commit comments

Comments
 (0)