diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-04-12 12:51:08 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-04-12 12:51:08 +0000 |
commit | e60d0c42e0ccca277117de7ac7b5669abf5e336c (patch) | |
tree | 974307e83e2f8f40a3a694d014fbe446ea6412a1 /src/testbed/gnunet-service-testbed.c | |
parent | 95e495ccbd15ee84d0d986bcc3d26889f73d8ce8 (diff) | |
download | gnunet-e60d0c42e0ccca277117de7ac7b5669abf5e336c.tar.gz gnunet-e60d0c42e0ccca277117de7ac7b5669abf5e336c.zip |
- fix memleak complaints from valgrind
Diffstat (limited to 'src/testbed/gnunet-service-testbed.c')
-rw-r--r-- | src/testbed/gnunet-service-testbed.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testbed/gnunet-service-testbed.c b/src/testbed/gnunet-service-testbed.c index 7864b0984..9c66634dc 100644 --- a/src/testbed/gnunet-service-testbed.c +++ b/src/testbed/gnunet-service-testbed.c | |||
@@ -851,15 +851,15 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
851 | GST_neighbour_list_clean(); | 851 | GST_neighbour_list_clean(); |
852 | /* Clear peer list */ | 852 | /* Clear peer list */ |
853 | GST_destroy_peers (); | 853 | GST_destroy_peers (); |
854 | /* Clear route list */ | ||
855 | GST_route_list_clear (); | ||
856 | /* Clear GST_slave_list */ | ||
857 | GST_slave_list_clear (); | ||
854 | /* Clear host list */ | 858 | /* Clear host list */ |
855 | for (id = 0; id < GST_host_list_size; id++) | 859 | for (id = 0; id < GST_host_list_size; id++) |
856 | if (NULL != GST_host_list[id]) | 860 | if (NULL != GST_host_list[id]) |
857 | GNUNET_TESTBED_host_destroy (GST_host_list[id]); | 861 | GNUNET_TESTBED_host_destroy (GST_host_list[id]); |
858 | GNUNET_free_non_null (GST_host_list); | 862 | GNUNET_free_non_null (GST_host_list); |
859 | /* Clear route list */ | ||
860 | GST_route_list_clear (); | ||
861 | /* Clear GST_slave_list */ | ||
862 | GST_slave_list_clear (); | ||
863 | if (NULL != GST_context) | 863 | if (NULL != GST_context) |
864 | { | 864 | { |
865 | GNUNET_free_non_null (GST_context->master_ip); | 865 | GNUNET_free_non_null (GST_context->master_ip); |