- fix testcase (use after free)
authorBart Polot <bart@net.in.tum.de>
Mon, 13 Feb 2012 14:21:45 +0000 (14:21 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 13 Feb 2012 14:21:45 +0000 (14:21 +0000)
src/mesh/test_mesh_small.c

index ee3dd8ace6bb7e83ac000c75dfffc80ea3cbd1a8..b9da9c45f5b27a7a54217da049271dd9af8e1363 100644 (file)
@@ -193,6 +193,7 @@ shutdown_callback (void *cls, const char *emsg)
                 "test: All peers successfully shut down!\n");
 #endif
   }
+  GNUNET_CONFIGURATION_destroy (testing_cfg);
 }
 
 
@@ -232,7 +233,6 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   if (data_file != NULL)
     GNUNET_DISK_file_close (data_file);
   GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL);
-  GNUNET_CONFIGURATION_destroy (testing_cfg);
 }