From 51b57a731dc7e3cf6e5d9bcbd30a72cdf8d64785 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 13 Feb 2012 14:21:45 +0000 Subject: [PATCH] - fix testcase (use after free) --- src/mesh/test_mesh_small.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.25.1