X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9d33adbc16791892e7f530e14ac14d6d373c4f0b..d3d508eff04c525b346d8ad648b6661d2783b827:/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 3e7cf06d80..095ea8c480 100644 --- 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(); } - + if (data != nullptr) { + delete static_cast(data); + } // leave the ring leave(); }