libmicrohttpd

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

commit 0cd701236adc62c3aed4b60445e5c24d0e7e7209
parent cb9bcba074e24e1e1cfa2b67341a055e1ed2cdb8
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon,  2 Feb 2009 07:19:59 +0000

fix

Diffstat:
Msrc/testcurl/https/mhds_get_test.c | 1+
Msrc/testcurl/https/mhds_multi_daemon_test.c | 1+
Msrc/testcurl/https/tls_daemon_options_test.c | 2++
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; }