Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[ns3] Move host creation callbacks to hostCreatedCallbacks
[simgrid.git] / src / surf / surfxml_parse.c
index 4764cb9..a7b0705 100644 (file)
@@ -14,7 +14,7 @@
 #include "xbt/file.h"
 #include "xbt/dict.h"
 #include "surf/surfxml_parse.h"
-#include "surf/surf_private.h"
+#include "src/surf/surf_private.h"
 #include "surf/random_mgr.h"
 #include "simgrid/sg_config.h"
 
@@ -479,6 +479,7 @@ void ETag_surfxml_host(void)    {
   host.coord = A_surfxml_host_coordinates;
 
   sg_platf_new_host(&host);
+  xbt_dynar_free(&host.power_peak);
   current_property_set = NULL;
 }