-LRN: fix host list freeing in testbed
authorChristian Grothoff <christian@grothoff.org>
Tue, 26 Jun 2012 21:16:24 +0000 (21:16 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 26 Jun 2012 21:16:24 +0000 (21:16 +0000)
src/testbed/gnunet-service-testbed.c

index 93a1cf81518520f007944af182faf1e4402dda71..a85ac7f49eccc03aba0a001db34bc486b063d3b6 100644 (file)
@@ -516,7 +516,7 @@ shutdown_task (void *cls,
   for (host_id = 0; host_id < host_list_size; host_id++)
     if (NULL != host_list[host_id])
       GNUNET_TESTBED_host_destroy (host_list[host_id]);
-  GNUNET_free (host_list);
+  GNUNET_free_non_null (host_list);
   GNUNET_free_non_null (master_context);
   master_context = NULL;
 }