HTTPS tests: fixed memory leak in tests

This commit is contained in:
Evgeny Grin (Karlson2k)
2021-08-16 11:55:23 +03:00
parent dd21230987
commit 99455892ab
+3
View File
@@ -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)))