aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/mhds_multi_daemon_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/mhds_multi_daemon_test.c')
-rw-r--r--src/testcurl/https/mhds_multi_daemon_test.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testcurl/https/mhds_multi_daemon_test.c b/src/testcurl/https/mhds_multi_daemon_test.c
index 69598d8f..6407daf7 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,
160 { 160 {
161 fprintf (stderr, "Error: failed to read test file. %s\n", 161 fprintf (stderr, "Error: failed to read test file. %s\n",
162 strerror (errno)); 162 strerror (errno));
163 free (doc_path);
163 return -1; 164 return -1;
164 } 165 }
165 166
@@ -167,6 +168,8 @@ test_daemon_get (FILE * test_fd, char *cipher_suite, int proto_version,
167 { 168 {
168 fprintf (stderr, "Error: failed to read test file. %s\n", 169 fprintf (stderr, "Error: failed to read test file. %s\n",
169 strerror (errno)); 170 strerror (errno));
171 free (mem_test_file_local);
172 free (doc_path);
170 return -1; 173 return -1;
171 } 174 }
172 cbc.size = len; 175 cbc.size = len;
@@ -206,6 +209,9 @@ test_daemon_get (FILE * test_fd, char *cipher_suite, int proto_version,
206 fprintf (stderr, "curl_easy_perform failed: `%s'\n", 209 fprintf (stderr, "curl_easy_perform failed: `%s'\n",
207 curl_easy_strerror (errornum)); 210 curl_easy_strerror (errornum));
208 curl_easy_cleanup (c); 211 curl_easy_cleanup (c);
212 free (mem_test_file_local);
213 free (doc_path);
214 free (cbc.buf);
209 return errornum; 215 return errornum;
210 } 216 }
211 217
@@ -261,6 +267,7 @@ test_concurent_daemon_pair (FILE * test_fd, char *cipher_suite,
261 267
262 if (d2 == NULL) 268 if (d2 == NULL)
263 { 269 {
270 MHD_stop_daemon(d1);
264 fprintf (stderr, MHD_E_SERVER_INIT); 271 fprintf (stderr, MHD_E_SERVER_INIT);
265 return -1; 272 return -1;
266 } 273 }