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
plug some leak by delete last message before leaving
[simgrid.git]
/
examples
/
s4u
/
dht-chord
/
s4u_dht-chord.hpp
diff --git
a/examples/s4u/dht-chord/s4u_dht-chord.hpp
b/examples/s4u/dht-chord/s4u_dht-chord.hpp
index
3e7cf06
..
095ea8c
100644
(file)
--- a/
examples/s4u/dht-chord/s4u_dht-chord.hpp
+++ b/
examples/s4u/dht-chord/s4u_dht-chord.hpp
@@
-156,7
+156,9
@@
public:
}
now = simgrid::s4u::Engine::instance()->getClock();
}
}
now = simgrid::s4u::Engine::instance()->getClock();
}
-
+ if (data != nullptr) {
+ delete static_cast<ChordMessage*>(data);
+ }
// leave the ring
leave();
}
// leave the ring
leave();
}