- mark meters as freed, documentation as missing
authorBart Polot <bart@net.in.tum.de>
Tue, 14 Feb 2012 10:37:42 +0000 (10:37 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 14 Feb 2012 10:37:42 +0000 (10:37 +0000)
src/testing/testing_peergroup.c

index 0421b000a6a24852d586d408a87ea76a354b2d2b..0119d667046d69c20cf90d0a9d5419537315432b 100644 (file)
@@ -68,14 +68,29 @@ struct PeerGroupStartupContext
   void *cls;
 
   const struct GNUNET_TESTING_Host *hostnames;
+  
+  /**
+   * FIXME document
+   */
   enum GNUNET_TESTING_Topology topology;
 
   float topology_percentage;
 
   float topology_probability;
 
+  /**
+   * FIXME document
+   */
   enum GNUNET_TESTING_Topology restrict_topology;
+  
+  /**
+   * FIXME document
+   */
   char *restrict_transports;
+  
+  /**
+   * Initial connections
+   */
   enum GNUNET_TESTING_Topology connect_topology;
   enum GNUNET_TESTING_TopologyOption connect_topology_option;
   double connect_topology_option_modifier;
@@ -297,11 +312,20 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
                                &internal_shutdown_callback, pg_start_ctx);
 
   if (pg_start_ctx->hostkey_meter != NULL)
+  {
     free_meter (pg_start_ctx->hostkey_meter);
+    pg_start_ctx->hostkey_meter = NULL;
+  }
   if (pg_start_ctx->peer_start_meter != NULL)
+  {
     free_meter (pg_start_ctx->peer_start_meter);
+    pg_start_ctx->peer_start_meter = NULL;
+  }
   if (pg_start_ctx->connect_meter != NULL)
+  {
     free_meter (pg_start_ctx->connect_meter);
+    pg_start_ctx->connect_meter = NULL;
+  }
 }
 
 /**