Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
the name field of a msg_file_t is actually a full name (including path),
[simgrid.git] / examples / msg / chainsend / broadcaster.c
index fc68dab..934e14a 100644 (file)
@@ -99,7 +99,8 @@ static void broadcaster_destroy(broadcaster_t bc)
   /* Destroy iterator and hostlist */
   xbt_dynar_iterator_delete(bc->it);
   xbt_dynar_free(&bc->pending_sends);
-  xbt_dynar_free(&bc->host_list);
+  xbt_dynar_free(&bc->host_list); /* FIXME: host names are not free'd */
+  xbt_free(bc);
 }
 
 /** Emitter function  */