Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
correct the leak of memory that correspond to EndLinEvent
[simgrid.git] / src / instr / instr_paje_trace.cpp
index c6cc61b..78f726e 100644 (file)
@@ -909,7 +909,11 @@ EndLinkEvent::EndLinkEvent (double timestamp, container_t container, type_t type
   insert_into_buffer (this);
 }
 
-
+EndLinkEvent::~EndLinkEvent()
+{
+  free(value);
+  free(key);
+}
 void EndLinkEvent::print() {
   if (instr_fmt_type == instr_fmt_paje) {
     XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);