commit cb863f824e2fa491a76cbb91bf539e1dfa48197b
parent 94fefea18d845162226ed989a0b7e06e24170f82
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 20 Jan 2018 18:24:15 +0100
fix leaks
Diffstat:
1 file changed, 4 insertions(+), 13 deletions(-)
diff --git a/src/twister/taler-twister-service.c b/src/twister/taler-twister-service.c
@@ -1090,7 +1090,8 @@ mhd_completed_cb (void *cls,
hr->curl);
curl_slist_free_all (hr->headers);
hr->headers = NULL;
- curl_easy_reset (hr->curl);
+ curl_easy_cleanup (hr->curl);
+ hr->curl = NULL;
hr->io_len = 0;
}
if ( (NULL != hr->response) &&
@@ -1305,6 +1306,8 @@ do_shutdown (void *cls)
GNUNET_SCHEDULER_cancel (curl_download_task);
curl_download_task = NULL;
}
+ GNUNET_free (target_server_base_url);
+ target_server_base_url = NULL;
}
@@ -1351,18 +1354,6 @@ run (void *cls,
return;
}
if (GNUNET_OK !=
- GNUNET_CONFIGURATION_get_value_string (c,
- "twister",
- "DESTINATION_BASE_URL",
- &target_server_base_url))
- {
- GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
- "twister",
- "DESTINATION_BASE_URL");
- GNUNET_SCHEDULER_shutdown ();
- return;
- }
- if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_number (c,
"twister",
"HTTP_PORT",