Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] when a process ends, remove its container from the parent as well
authorLucas Schnorr <Lucas.Schnorr@imag.fr>
Fri, 20 Jan 2012 14:39:51 +0000 (15:39 +0100)
committerLucas Schnorr <Lucas.Schnorr@imag.fr>
Sun, 22 Jan 2012 23:55:24 +0000 (00:55 +0100)
src/instr/instr_msg_process.c

index 365651c..c752a1b 100644 (file)
@@ -148,7 +148,9 @@ void TRACE_msg_process_end(m_process_t process)
     char str[INSTR_DEFAULT_STR_SIZE];
 
     //that's the end, let's destroy it
     char str[INSTR_DEFAULT_STR_SIZE];
 
     //that's the end, let's destroy it
-    destroyContainer (getContainer(instr_process_id(process, str, len)));
+    container_t container = getContainer(instr_process_id(process, str, len));
+    removeContainerFromParent (container);
+    destroyContainer (container);
   }
 }
 
   }
 }