Skip to content

Commit 247bc15

Browse files
Fix for CID 299627 memory leak on error case
1 parent 0ba406a commit 247bc15

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37181,6 +37181,8 @@ PKCS7* wolfSSL_SMIME_read_PKCS7(WOLFSSL_BIO* in,
3718137181
XFREE(section, NULL, DYNAMIC_TYPE_PKCS7);
3718237182
if (canonSection != NULL)
3718337183
XFREE(canonSection, NULL, DYNAMIC_TYPE_PKCS7);
37184+
if (cannonLine != NULL)
37185+
XFREE(canonLine, NULL, DYNAMIC_TYPE_PKCS7);
3718437186
if (bcont) {
3718537187
wolfSSL_BIO_free(*bcont);
3718637188
*bcont = NULL; /* reset 'bcount' pointer to NULL on failure */

0 commit comments

Comments
 (0)