Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
match free with mallocs
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 24 Mar 2017 10:25:29 +0000 (11:25 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 24 Mar 2017 12:09:01 +0000 (13:09 +0100)
That's weird to put a free here, but having a new sg_size_t would be
even worse, wouldn't it?

src/surf/storage_interface.cpp

index 799f67c..831e514 100644 (file)
@@ -78,7 +78,7 @@ Storage::~Storage(){
   storageDestructedCallbacks(this);
   if (content_ != nullptr) {
     for (auto entry : *content_)
-      delete entry.second;
+      free(entry.second);
     delete content_;
   }
   free(typeId_);