Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Some more memleaks removed
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 28 Jan 2010 15:51:25 +0000 (15:51 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 28 Jan 2010 15:51:25 +0000 (15:51 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7036 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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;
 }