Skip to content

Commit 9919763

Browse files
committed
Fix for possible leak with CRL_Entry_free.
1 parent 2f83fe8 commit 9919763

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

3371333713
while(tmp) {
3371433714
RevokedCert* next = tmp->next;
33715+
#if defined(OPENSSL_EXTRA)
33716+
XFREE(tmp->extensions, dcrl->heap, DYNAMIC_TYPE_REVOKED);
33717+
#endif
3371533718
XFREE(tmp, dcrl->heap, DYNAMIC_TYPE_REVOKED);
3371633719
tmp = next;
3371733720
}

0 commit comments

Comments
 (0)