Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Some more memleaks removed
[simgrid.git] / src / msg / msg_actions.c
index d47f060..f542748 100644 (file)
@@ -64,7 +64,7 @@ void _MSG_action_init()
 
 void _MSG_action_exit() {
   xbt_dict_free(&action_queues);
 
 void _MSG_action_exit() {
   xbt_dict_free(&action_queues);
-  action_queues = xbt_dict_new();
+  xbt_dict_free(&action_funs);
 }
 
 static FILE *action_fp=NULL;
 }
 
 static FILE *action_fp=NULL;
@@ -152,6 +152,8 @@ MSG_error_t MSG_action_trace_run(char *path)
   if (action_line)
     free(action_line);
   fclose(action_fp);
   if (action_line)
     free(action_line);
   fclose(action_fp);
+  xbt_dict_free(&action_queues);
+  action_queues = xbt_dict_new();
 
   return res;
 }
 
   return res;
 }