Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Memory leak.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 18 Jul 2018 09:21:17 +0000 (11:21 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 18 Jul 2018 09:21:17 +0000 (11:21 +0200)
src/smpi/internals/instr_smpi.cpp

index b55f098..9c43bde 100644 (file)
@@ -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;
 }