X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/97fa57103ccd60e8fc4c04ea6591904a7600a679..82f71f716643bf7c4ba1c63793439b753fcfa954:/src/surf/xml/surfxml_sax_cb.cpp diff --git a/src/surf/xml/surfxml_sax_cb.cpp b/src/surf/xml/surfxml_sax_cb.cpp index 3d2e6a3aad..68ff3721a0 100644 --- a/src/surf/xml/surfxml_sax_cb.cpp +++ b/src/surf/xml/surfxml_sax_cb.cpp @@ -781,6 +781,7 @@ void ETag_surfxml_ASroute(void){ } sg_platf_new_route(&ASroute); + delete ASroute.link_list; } void ETag_surfxml_bypassRoute(void){ @@ -950,6 +951,12 @@ void ETag_surfxml_process(void){ } 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; }