leak
authorChristian Grothoff <christian@grothoff.org>
Sun, 15 Aug 2010 13:56:26 +0000 (13:56 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 15 Aug 2010 13:56:26 +0000 (13:56 +0000)
src/transport/plugin_transport_tcp.c
src/util/program.c

index 3d12f690905cddcb2b2a4704a333ab78a7335d28..a725771b4a1c6cd2409236a2ffbf200c2d5cd40c 100644 (file)
@@ -2433,6 +2433,7 @@ libgnunet_plugin_transport_tcp_init (void *cls)
           GNUNET_free_non_null(external_address);
           GNUNET_free_non_null(internal_address);
           GNUNET_SERVICE_stop (service);
+         GNUNET_free (api);
           return NULL;
         }
     }
index 88b67a21eb81b563d085003de79b47684d44f312..9a5ee8833f17ce22c8552d2536212d57c24359d9 100644 (file)
@@ -214,6 +214,7 @@ GNUNET_PROGRAM_run (int argc,
        (GNUNET_OK != GNUNET_CONFIGURATION_load (cfg, cc.cfgfile))))
 
     {
+      GNUNET_CONFIGURATION_destroy (cfg);
       GNUNET_free_non_null (cc.cfgfile);
       GNUNET_free (loglev);
       GNUNET_free (allopts);