X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1260d46173af975ea2c537d7d060efbfc54286aa..9086c78d060e42312987d34efb10d3dd03d103b3:/src/smpi/internals/instr_smpi.cpp diff --git a/src/smpi/internals/instr_smpi.cpp b/src/smpi/internals/instr_smpi.cpp index 63ee87112a..b55f098116 100644 --- a/src/smpi/internals/instr_smpi.cpp +++ b/src/smpi/internals/instr_smpi.cpp @@ -138,6 +138,8 @@ 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()) + keys.erase(it); } return key; }