From a27b40c19253723ecfbadf69fb8bca115c4059fb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 4 May 2010 16:55:27 +0000 Subject: [PATCH] fixes --- src/transport/plugin_transport_http.c | 2 ++ src/transport/test_plugin_transport_http.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index fdd7c7a01..9afc0a748 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -402,6 +402,7 @@ libgnunet_plugin_transport_http_init (void *cls) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("Failed to retrieve statistics handle\n")); + GNUNET_free (api); return NULL; } @@ -410,6 +411,7 @@ libgnunet_plugin_transport_http_init (void *cls) if ( (NULL == http_daemon) || (NULL == curl_multi)) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Initializing http plugin failed\n"); + GNUNET_free (api); return NULL; } else diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c index d0e796d67..38d38d903 100644 --- a/src/transport/test_plugin_transport_http.c +++ b/src/transport/test_plugin_transport_http.c @@ -204,7 +204,6 @@ run (void *cls, cfg = c; timeout_task = GNUNET_SCHEDULER_add_delayed ( sched, GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5), &timeout_error, NULL); - /* parse configuration */ if ((GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (c, @@ -228,7 +227,9 @@ run (void *cls, /* max_connect_per_transport = (uint32_t) tneigh; my_private_key = GNUNET_CRYPTO_rsa_key_create_from_file (keyfile); + */ GNUNET_free (keyfile); + /* if (my_private_key == NULL) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, -- 2.25.1