mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
Fix for CID 299627 memory leak on error case
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user