Fix for CID 299627 memory leak on error case

This commit is contained in:
JacobBarthelmeh 2023-10-27 15:10:32 -06:00
parent 0ba406a52c
commit 247bc151d9

View File

@ -37181,6 +37181,8 @@ error:
XFREE(section, NULL, DYNAMIC_TYPE_PKCS7);
if (canonSection != NULL)
XFREE(canonSection, NULL, DYNAMIC_TYPE_PKCS7);
if (cannonLine != NULL)
XFREE(canonLine, NULL, DYNAMIC_TYPE_PKCS7);
if (bcont) {
wolfSSL_BIO_free(*bcont);
*bcont = NULL; /* reset 'bcount' pointer to NULL on failure */