Skip to content

Commit 96a3591

Browse files
authored
Merge pull request #8896 from holtrop/fix-asn-memory-leak
Fix memory leak in ParseCRL_Extensions
2 parents 8f0106a + 7dfb782 commit 96a3591

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wolfcrypt/src/asn.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40601,6 +40601,7 @@ static int ParseCRL_Extensions(DecodedCRL* dcrl, const byte* buf, word32 idx,
4060140601
dcrl->crlNumberSet = 1;
4060240602
}
4060340603

40604+
mp_free(m);
4060440605
FREE_MP_INT_SIZE(m, NULL, DYNAMIC_TYPE_TMP_BUFFER);
4060540606
}
4060640607
/* TODO: check criticality */

0 commit comments

Comments
 (0)