X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d4c8c79a8d299472d3a775b7670615fdccb0b7ee..016507e2f9575c2ee41587803bf3c6cecbde99a0:/src/smpi/internals/instr_smpi.cpp diff --git a/src/smpi/internals/instr_smpi.cpp b/src/smpi/internals/instr_smpi.cpp index b55f098116..9c43bde030 100644 --- 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; }