From: Martin Quinson Date: Fri, 23 Dec 2016 08:35:16 +0000 (+0100) Subject: plug a huge memleak X-Git-Tag: v3_14~6 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4da1d4781f09b739bcaa2d0bbf0f801023a3e077 plug a huge memleak I forgot once again that xbt_dict actually delete their content when you empty it, but not the std:: containers. --- diff --git a/src/s4u/s4u_engine.cpp b/src/s4u/s4u_engine.cpp index c98ab30d3b..6cff0b1ce6 100644 --- a/src/s4u/s4u_engine.cpp +++ b/src/s4u/s4u_engine.cpp @@ -138,6 +138,7 @@ void Engine::netcardUnregister(simgrid::kernel::routing::NetCard* card) { simgrid::simix::kernelImmediate([&]{ pimpl->netcards_.erase(card->name()); + delete card; }); } }