diff options
author | Bart Polot <bart@net.in.tum.de> | 2012-12-19 18:40:57 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2012-12-19 18:40:57 +0000 |
commit | 2bcf061a87e0ced834a6fa4cc239cdd04c8c5145 (patch) | |
tree | 207139cf7bc6cdfe4c4d69240f50f08b1e927f87 /src | |
parent | db4883871534ee9e56c65e7130cd00005cfd27c8 (diff) | |
download | gnunet-2bcf061a87e0ced834a6fa4cc239cdd04c8c5145.tar.gz gnunet-2bcf061a87e0ced834a6fa4cc239cdd04c8c5145.zip |
- fix double free
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/test_mesh_regex.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesh/test_mesh_regex.c b/src/mesh/test_mesh_regex.c index d1b69c4fc..a90d496f6 100644 --- a/src/mesh/test_mesh_regex.c +++ b/src/mesh/test_mesh_regex.c | |||
@@ -147,9 +147,7 @@ disconnect_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
147 | for (i = 0; i < MESH_REGEX_PEERS; i++) | 147 | for (i = 0; i < MESH_REGEX_PEERS; i++) |
148 | { | 148 | { |
149 | GNUNET_MESH_tunnel_destroy (t[i]); | 149 | GNUNET_MESH_tunnel_destroy (t[i]); |
150 | GNUNET_MESH_disconnect (h2[i]); | ||
151 | } | 150 | } |
152 | GNUNET_MESH_disconnect (h1); | ||
153 | if (GNUNET_SCHEDULER_NO_TASK != shutdown_handle) | 151 | if (GNUNET_SCHEDULER_NO_TASK != shutdown_handle) |
154 | { | 152 | { |
155 | GNUNET_SCHEDULER_cancel (shutdown_handle); | 153 | GNUNET_SCHEDULER_cancel (shutdown_handle); |
@@ -435,11 +433,11 @@ main (int argc, char *argv[]) | |||
435 | if (GNUNET_OK != result || regex_peers != MESH_REGEX_PEERS) | 433 | if (GNUNET_OK != result || regex_peers != MESH_REGEX_PEERS) |
436 | { | 434 | { |
437 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 435 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
438 | "test: FAILED! %u connected peers\n", | 436 | "FAILED! %u connected peers\n", |
439 | regex_peers); | 437 | regex_peers); |
440 | return 1; | 438 | return 1; |
441 | } | 439 | } |
442 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "test: success\n"); | 440 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "success :)\n"); |
443 | return 0; | 441 | return 0; |
444 | } | 442 | } |
445 | 443 | ||