diff options
author | Bart Polot <bart@net.in.tum.de> | 2012-02-24 12:15:57 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2012-02-24 12:15:57 +0000 |
commit | bd2b737b0d3495d29d29c777f94cecbb2f632fcc (patch) | |
tree | 3ee5cabdb18a2d140b1963bfdd1b30c83fed7150 /src | |
parent | e485bea7f1ffc881334748f759ffe8c665131a44 (diff) | |
download | gnunet-bd2b737b0d3495d29d29c777f94cecbb2f632fcc.tar.gz gnunet-bd2b737b0d3495d29d29c777f94cecbb2f632fcc.zip |
- Fix crashing testcases
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/test_mesh_2dtorus.c | 2 | ||||
-rw-r--r-- | src/mesh/test_mesh_local_2.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/mesh/test_mesh_2dtorus.c b/src/mesh/test_mesh_2dtorus.c index 6d91185cc..9946fe2d4 100644 --- a/src/mesh/test_mesh_2dtorus.c +++ b/src/mesh/test_mesh_2dtorus.c | |||
@@ -114,6 +114,7 @@ shutdown_callback (void *cls, const char *emsg) | |||
114 | "test: All peers successfully shut down!\n"); | 114 | "test: All peers successfully shut down!\n"); |
115 | } | 115 | } |
116 | #endif | 116 | #endif |
117 | GNUNET_CONFIGURATION_destroy (testing_cfg); | ||
117 | } | 118 | } |
118 | 119 | ||
119 | 120 | ||
@@ -125,7 +126,6 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
125 | #endif | 126 | #endif |
126 | 127 | ||
127 | GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL); | 128 | GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL); |
128 | GNUNET_CONFIGURATION_destroy (testing_cfg); | ||
129 | } | 129 | } |
130 | 130 | ||
131 | 131 | ||
diff --git a/src/mesh/test_mesh_local_2.c b/src/mesh/test_mesh_local_2.c index c91548052..eff15046f 100644 --- a/src/mesh/test_mesh_local_2.c +++ b/src/mesh/test_mesh_local_2.c | |||
@@ -55,6 +55,10 @@ do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
55 | { | 55 | { |
56 | GNUNET_SCHEDULER_cancel (abort_task); | 56 | GNUNET_SCHEDULER_cancel (abort_task); |
57 | } | 57 | } |
58 | if (NULL != t) | ||
59 | { | ||
60 | GNUNET_MESH_tunnel_destroy(t); | ||
61 | } | ||
58 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: D1\n"); | 62 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: D1\n"); |
59 | if (NULL != mesh_peer_1) | 63 | if (NULL != mesh_peer_1) |
60 | { | 64 | { |