Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix a leak in XML parsing
[simgrid.git] / src / surf / xml / surfxml_sax_cb.cpp
index 7e8c927..68ff372 100644 (file)
@@ -951,6 +951,12 @@ void ETag_surfxml_process(void){
   }
 
   sg_platf_new_process(&process);
   }
 
   sg_platf_new_process(&process);
+
+  for (int i = 0; i != argc; ++i)
+    xbt_free(argv[i]);
+  xbt_free(argv);
+  argv = nullptr;
+
   current_property_set = nullptr;
 }
 
   current_property_set = nullptr;
 }