Logo AND Algorithmique Numérique Distribuée

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

src/simix/smx_process.c
src/surf/surf_routing.c

index 14025ba..0e92bfc 100644 (file)
@@ -41,6 +41,8 @@ void SIMIX_process_empty_trash(void)
     /* Free the exception allocated at creation time */
     if (process->exception)
       free(process->exception);
+    if (process->properties)
+      xbt_dict_free(&process->properties);
 
     free(process->name);
     process->name = NULL;
index 84a21f6..1d4972b 100644 (file)
@@ -366,6 +366,7 @@ static void routing_full_finalize(void) {
         xbt_dynar_free(&ROUTE_FULL(i, j));
     free(routing->routing_table);
     xbt_dict_free(&used_routing->host_id);
+    xbt_dict_free(&onelink_routes);
     free(routing);
     routing=NULL;
   }