A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
match new with delete in fact
[simgrid.git]
/
src
/
surf
/
storage_interface.cpp
diff --git
a/src/surf/storage_interface.cpp
b/src/surf/storage_interface.cpp
index
831e514
..
799f67c
100644
(file)
--- a/
src/surf/storage_interface.cpp
+++ b/
src/surf/storage_interface.cpp
@@
-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_);