X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/22b73e951cc052e33689b42fd9a747334bc22c8a..092d1ae67abcb82d0404d797816c6171671cceb7:/src/surf/HostImpl.cpp diff --git a/src/surf/HostImpl.cpp b/src/surf/HostImpl.cpp index edb9499d2c..a692a0317e 100644 --- a/src/surf/HostImpl.cpp +++ b/src/surf/HostImpl.cpp @@ -107,7 +107,11 @@ HostImpl::HostImpl(s4u::Host* host) : piface_(host) } /** @brief use destroy() instead of this destructor */ -HostImpl::~HostImpl() = default; +HostImpl::~HostImpl() +{ + for (auto mnt : storage_) + xbt_free(mnt.name); +} simgrid::surf::Storage* HostImpl::findStorageOnMountList(const char* mount) {