commit 0cd701236adc62c3aed4b60445e5c24d0e7e7209
parent cb9bcba074e24e1e1cfa2b67341a055e1ed2cdb8
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 2 Feb 2009 07:19:59 +0000
fix
Diffstat:
3 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/testcurl/https/mhds_get_test.c b/src/testcurl/https/mhds_get_test.c
@@ -161,6 +161,7 @@ test_daemon_get (FILE * test_fd, char *cipher_suite, int proto_version)
if (NULL == (mem_test_file_local = malloc (len)))
{
fprintf (stderr, MHD_E_MEM);
+ free (doc_path);
return -1;
}
diff --git a/src/testcurl/https/mhds_multi_daemon_test.c b/src/testcurl/https/mhds_multi_daemon_test.c
@@ -160,6 +160,7 @@ test_daemon_get (FILE * test_fd, char *cipher_suite, int proto_version,
{
fprintf (stderr, "Error: failed to read test file. %s\n",
strerror (errno));
+ free (mem_test_file_local);
free (doc_path);
return -1;
}
diff --git a/src/testcurl/https/tls_daemon_options_test.c b/src/testcurl/https/tls_daemon_options_test.c
@@ -183,6 +183,7 @@ test_https_transfer (FILE * test_fd, char *cipher_suite, int proto_version)
{
fprintf (stderr, "Error: failed to read test file. %s\n",
strerror (errno));
+ free (mem_test_file_local);
free (doc_path);
return -1;
}
@@ -190,6 +191,7 @@ test_https_transfer (FILE * test_fd, char *cipher_suite, int proto_version)
if (NULL == (cbc.buf = malloc (sizeof (char) * len)))
{
fprintf (stderr, MHD_E_MEM);
+ free (mem_test_file_local);
free (doc_path);
return -1;
}