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
Memory leak.
[simgrid.git]
/
src
/
smpi
/
internals
/
instr_smpi.cpp
diff --git
a/src/smpi/internals/instr_smpi.cpp
b/src/smpi/internals/instr_smpi.cpp
index
b55f098
..
9c43bde
100644
(file)
--- a/
src/smpi/internals/instr_smpi.cpp
+++ b/
src/smpi/internals/instr_smpi.cpp
@@
-138,8
+138,10
@@
static std::string TRACE_smpi_get_key(int src, int dst, int tag, int send)
} else {
key = it->second->front();
it->second->pop_front();
- if (it->second->empty())
+ if (it->second->empty()) {
+ delete it->second;
keys.erase(it);
+ }
}
return key;
}