Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
match new with delete in fact
[simgrid.git] / src / surf / storage_interface.cpp
index 831e514..799f67c 100644 (file)
@@ -78,7 +78,7 @@ Storage::~Storage(){
   storageDestructedCallbacks(this);
   if (content_ != nullptr) {
     for (auto entry : *content_)
-      free(entry.second);
+      delete entry.second;
     delete content_;
   }
   free(typeId_);