forked from wolfSSL/wolfssl
fix for memory leak
This commit is contained in:
@ -19094,12 +19094,10 @@ int wc_MIME_parse_headers(char* in, int inLen, MimeHdr** headers)
|
||||
}
|
||||
|
||||
*headers = curHdr;
|
||||
XFREE(nextHdr, NULL, DYNAMIC_TYPE_PKCS7);
|
||||
XFREE(nextParam, NULL, DYNAMIC_TYPE_PKCS7);
|
||||
|
||||
return 0;
|
||||
ret = 0; /* success if at this point */
|
||||
|
||||
error:
|
||||
if (ret != 0)
|
||||
wc_MIME_free_hdrs(curHdr);
|
||||
wc_MIME_free_hdrs(nextHdr);
|
||||
if (nameAttr != NULL)
|
||||
|
Reference in New Issue
Block a user