From 0925e5b887363074ee2f0009b62510cf32ce8c84 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Sun, 14 Oct 2012 09:19:45 +0000 Subject: [PATCH] removed peer destroy. May leak memory, but anyway we need that till the end --- src/testbed/gnunet-testbed-profiler.c | 8 -------- 1 file changed, 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) { struct DLLOperation *dll_op; unsigned int nhost; - unsigned int peer_cnt; if (GNUNET_SCHEDULER_NO_TASK != abort_task) GNUNET_SCHEDULER_cancel (abort_task); if (GNUNET_SCHEDULER_NO_TASK != register_hosts_task) GNUNET_SCHEDULER_cancel (register_hosts_task); - if (NULL != peers) - { - for (peer_cnt = 0; peer_cnt < num_peers; peer_cnt++) - if (NULL != peers[peer_cnt]) - GNUNET_TESTBED_peer_destroy (peers[peer_cnt]); - GNUNET_free (peers); - } if (NULL != reg_handle) GNUNET_TESTBED_cancel_registration (reg_handle); for (nhost = 0; nhost < num_hosts; nhost++) -- 2.25.1