From 247bc151d9ed7ac59b37e93b2a0f4fba633578cf Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Fri, 27 Oct 2023 15:10:32 -0600 Subject: [PATCH] Fix for CID 299627 memory leak on error case --- src/ssl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ssl.c b/src/ssl.c index 30da655be..c9a373dbb 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -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 */