Fix for CID 299627 memory leak on error case
This commit is contained in:
parent
0ba406a52c
commit
247bc151d9
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user