From: Bart Polot Date: Mon, 13 Feb 2012 14:21:45 +0000 (+0000) Subject: - fix testcase (use after free) X-Git-Tag: initial-import-from-subversion-38251~14878 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=51b57a731dc7e3cf6e5d9bcbd30a72cdf8d64785;p=oweals%2Fgnunet.git - fix testcase (use after free) --- diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c index ee3dd8ace..b9da9c45f 100644 --- a/src/mesh/test_mesh_small.c +++ b/src/mesh/test_mesh_small.c @@ -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); }