diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-08-16 11:55:23 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-08-16 11:55:23 +0300 |
commit | 99455892aba870998a340c32d82e8ebedb0dfc02 (patch) | |
tree | 1cc61994d60f40d3393e2914b16757f79ad3a9ea | |
parent | dd2123098702285101d944d79f8bc668b1a2622c (diff) | |
download | libmicrohttpd-99455892aba870998a340c32d82e8ebedb0dfc02.tar.gz libmicrohttpd-99455892aba870998a340c32d82e8ebedb0dfc02.zip |
HTTPS tests: fixed memory leak in tests
-rw-r--r-- | src/testcurl/https/tls_test_common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c index d082c9a1..cf500034 100644 --- 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, | |||
107 | fprintf (stderr, "curl_easy_setopt failed: `%s'\n", | 107 | fprintf (stderr, "curl_easy_setopt failed: `%s'\n", |
108 | curl_easy_strerror (e)); | 108 | curl_easy_strerror (e)); |
109 | curl_easy_cleanup (c); | 109 | curl_easy_cleanup (c); |
110 | free (cbc.buf); | ||
110 | return e; | 111 | return e; |
111 | } | 112 | } |
112 | 113 | ||
@@ -125,6 +126,7 @@ test_daemon_get (void *cls, | |||
125 | fprintf (stderr, "HTTPS curl_easy_setopt failed: `%s'\n", | 126 | fprintf (stderr, "HTTPS curl_easy_setopt failed: `%s'\n", |
126 | curl_easy_strerror (e)); | 127 | curl_easy_strerror (e)); |
127 | curl_easy_cleanup (c); | 128 | curl_easy_cleanup (c); |
129 | free (cbc.buf); | ||
128 | return e; | 130 | return e; |
129 | } | 131 | } |
130 | if (ver_peer && | 132 | if (ver_peer && |
@@ -133,6 +135,7 @@ test_daemon_get (void *cls, | |||
133 | fprintf (stderr, "HTTPS curl_easy_setopt failed: `%s'\n", | 135 | fprintf (stderr, "HTTPS curl_easy_setopt failed: `%s'\n", |
134 | curl_easy_strerror (e)); | 136 | curl_easy_strerror (e)); |
135 | curl_easy_cleanup (c); | 137 | curl_easy_cleanup (c); |
138 | free (cbc.buf); | ||
136 | return e; | 139 | return e; |
137 | } | 140 | } |
138 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 141 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |