From 0cd701236adc62c3aed4b60445e5c24d0e7e7209 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 2 Feb 2009 07:19:59 +0000 Subject: [PATCH] fix --- src/testcurl/https/mhds_get_test.c | 1 + src/testcurl/https/mhds_multi_daemon_test.c | 1 + src/testcurl/https/tls_daemon_options_test.c | 2 ++ 3 files changed, 4 insertions(+) diff --git a/src/testcurl/https/mhds_get_test.c b/src/testcurl/https/mhds_get_test.c index 9b2f9519..7ba1cd5a 100644 --- 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 index 6407daf7..d663902c 100644 --- 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 index 2575c340..b388f24d 100644 --- 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; }