diff options
author | Bart Polot <bart@net.in.tum.de> | 2012-02-13 14:21:45 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2012-02-13 14:21:45 +0000 |
commit | 51b57a731dc7e3cf6e5d9bcbd30a72cdf8d64785 (patch) | |
tree | 45602c385a67aa67bb2e2229ca4be7eb4a04b3bd /src/mesh | |
parent | 0a7b16a6bec661307069845efb6ba25856dca402 (diff) | |
download | gnunet-51b57a731dc7e3cf6e5d9bcbd30a72cdf8d64785.tar.gz gnunet-51b57a731dc7e3cf6e5d9bcbd30a72cdf8d64785.zip |
- fix testcase (use after free)
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/test_mesh_small.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
193 | "test: All peers successfully shut down!\n"); | 193 | "test: All peers successfully shut down!\n"); |
194 | #endif | 194 | #endif |
195 | } | 195 | } |
196 | GNUNET_CONFIGURATION_destroy (testing_cfg); | ||
196 | } | 197 | } |
197 | 198 | ||
198 | 199 | ||
@@ -232,7 +233,6 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
232 | if (data_file != NULL) | 233 | if (data_file != NULL) |
233 | GNUNET_DISK_file_close (data_file); | 234 | GNUNET_DISK_file_close (data_file); |
234 | GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL); | 235 | GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL); |
235 | GNUNET_CONFIGURATION_destroy (testing_cfg); | ||
236 | } | 236 | } |
237 | 237 | ||
238 | 238 | ||