fixes
authorSree Harsha Totakura <totakura@in.tum.de>
Fri, 27 Jul 2012 15:06:18 +0000 (15:06 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Fri, 27 Jul 2012 15:06:18 +0000 (15:06 +0000)
src/testbed/gnunet-service-testbed.c
src/testbed/testbed_api_hosts.c

index 81ca312e077d84217368d49f21bfd2b5bb91c9b2..31112ce00c772b9dd17e97984e10f64403a96977 100644 (file)
@@ -1115,6 +1115,7 @@ handle_link_controllers (void *cls,
       LOG (GNUNET_ERROR_TYPE_WARNING, "Uncompressed config size mismatch\n");
       GNUNET_free (config);
       GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
+      return;
     }
     cfg = GNUNET_CONFIGURATION_create (); /* Free here or in lcfcontext */
     if (GNUNET_OK != GNUNET_CONFIGURATION_deserialize (cfg, config, config_size,
@@ -1279,6 +1280,7 @@ handle_peer_create (void *cls,
     {
       LOG (GNUNET_ERROR_TYPE_WARNING, "Configuring peer failed: %s\n", emsg);
       GNUNET_free (emsg);
+      GNUNET_free (peer);
       GNUNET_break (0);
       GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
       return;
index 384acc570fb1c3edac1bd37c20a4ba2ebd76122c..f4cc6fc6bc0f8940f10416d591b2edd804b9113c 100644 (file)
@@ -35,7 +35,6 @@
 
 #include "testbed_api.h"
 #include "testbed_api_hosts.h"
-#include "testbed_helper.h"
 
 /**
  * Generic logging shorthand