diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-10-14 09:19:45 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-10-14 09:19:45 +0000 |
commit | 0925e5b887363074ee2f0009b62510cf32ce8c84 (patch) | |
tree | c4632275c340aceebd85ac425e6f110dcf57f174 /src/testbed/gnunet-testbed-profiler.c | |
parent | db502292df02ce466eb9f686c91399f480475ad9 (diff) | |
download | gnunet-0925e5b887363074ee2f0009b62510cf32ce8c84.tar.gz gnunet-0925e5b887363074ee2f0009b62510cf32ce8c84.zip |
removed peer destroy. May leak memory, but anyway we need that till the end
Diffstat (limited to 'src/testbed/gnunet-testbed-profiler.c')
-rw-r--r-- | src/testbed/gnunet-testbed-profiler.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c index 1a6c9ea7c..e1aa61a1b 100644 --- a/src/testbed/gnunet-testbed-profiler.c +++ b/src/testbed/gnunet-testbed-profiler.c | |||
@@ -191,19 +191,11 @@ do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
191 | { | 191 | { |
192 | struct DLLOperation *dll_op; | 192 | struct DLLOperation *dll_op; |
193 | unsigned int nhost; | 193 | unsigned int nhost; |
194 | unsigned int peer_cnt; | ||
195 | 194 | ||
196 | if (GNUNET_SCHEDULER_NO_TASK != abort_task) | 195 | if (GNUNET_SCHEDULER_NO_TASK != abort_task) |
197 | GNUNET_SCHEDULER_cancel (abort_task); | 196 | GNUNET_SCHEDULER_cancel (abort_task); |
198 | if (GNUNET_SCHEDULER_NO_TASK != register_hosts_task) | 197 | if (GNUNET_SCHEDULER_NO_TASK != register_hosts_task) |
199 | GNUNET_SCHEDULER_cancel (register_hosts_task); | 198 | GNUNET_SCHEDULER_cancel (register_hosts_task); |
200 | if (NULL != peers) | ||
201 | { | ||
202 | for (peer_cnt = 0; peer_cnt < num_peers; peer_cnt++) | ||
203 | if (NULL != peers[peer_cnt]) | ||
204 | GNUNET_TESTBED_peer_destroy (peers[peer_cnt]); | ||
205 | GNUNET_free (peers); | ||
206 | } | ||
207 | if (NULL != reg_handle) | 199 | if (NULL != reg_handle) |
208 | GNUNET_TESTBED_cancel_registration (reg_handle); | 200 | GNUNET_TESTBED_cancel_registration (reg_handle); |
209 | for (nhost = 0; nhost < num_hosts; nhost++) | 201 | for (nhost = 0; nhost < num_hosts; nhost++) |