fixes
authorChristian Grothoff <christian@grothoff.org>
Tue, 4 May 2010 16:55:27 +0000 (16:55 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 4 May 2010 16:55:27 +0000 (16:55 +0000)
src/transport/plugin_transport_http.c
src/transport/test_plugin_transport_http.c

index fdd7c7a010490358c386137a667d26f6073b6e87..9afc0a74851febaa839290047a145a0159819b07 100644 (file)
@@ -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
index d0e796d67e8532489de9313faf87fa1a8f67c583..38d38d903c4b93bf7ce4a033160f57b98d8364e8 100644 (file)
@@ -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,