From 515690f98e16a5c252ec16d5f5373e4a318547bc Mon Sep 17 00:00:00 2001 From: mquinson Date: Thu, 28 Jan 2010 15:51:12 +0000 Subject: [PATCH] plug a few memleaks git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7034 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/simix/smx_process.c | 2 ++ src/surf/surf_routing.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/simix/smx_process.c b/src/simix/smx_process.c index 14025ba156..0e92bfc463 100644 --- a/src/simix/smx_process.c +++ b/src/simix/smx_process.c @@ -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; diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index 84a21f6fa8..1d4972b5ce 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -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; } -- 2.20.1