X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c8af3e383cdaff4549e477c7daca50058e03fc62..52089b08b629d77bce06104b92bf99fecaf0349b:/src/surf/surf.hpp diff --git a/src/surf/surf.hpp b/src/surf/surf.hpp index 8dab3fd595..c88ca70b05 100644 --- a/src/surf/surf.hpp +++ b/src/surf/surf.hpp @@ -167,7 +167,10 @@ class Resource { public: Resource(); Resource(ModelPtr model, const char *name, xbt_dict_t properties); - virtual ~Resource() {}; + virtual ~Resource() { + xbt_free((void*)m_name); + xbt_dict_free(&m_properties); + }; virtual void updateState(tmgr_trace_event_t event_type, double value, double date)=0;