libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 99455892aba870998a340c32d82e8ebedb0dfc02
parent dd2123098702285101d944d79f8bc668b1a2622c
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Mon, 16 Aug 2021 11:55:23 +0300

HTTPS tests: fixed memory leak in tests

Diffstat:
Msrc/testcurl/https/tls_test_common.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c @@ -107,6 +107,7 @@ test_daemon_get (void *cls, fprintf (stderr, "curl_easy_setopt failed: `%s'\n", curl_easy_strerror (e)); curl_easy_cleanup (c); + free (cbc.buf); return e; } @@ -125,6 +126,7 @@ test_daemon_get (void *cls, fprintf (stderr, "HTTPS curl_easy_setopt failed: `%s'\n", curl_easy_strerror (e)); curl_easy_cleanup (c); + free (cbc.buf); return e; } if (ver_peer && @@ -133,6 +135,7 @@ test_daemon_get (void *cls, fprintf (stderr, "HTTPS curl_easy_setopt failed: `%s'\n", curl_easy_strerror (e)); curl_easy_cleanup (c); + free (cbc.buf); return e; } if (CURLE_OK != (errornum = curl_easy_perform (c)))