From 2d217ae8001c61739609ce56c8c815c0791303cc Mon Sep 17 00:00:00 2001 From: thiery Date: Tue, 7 Dec 2010 14:24:27 +0000 Subject: [PATCH] Fix more memory leaks git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9066 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/msg/actions/actions.c | 2 ++ src/msg/msg_actions.c | 1 + src/surf/surf_routing.c | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/msg/actions/actions.c b/examples/msg/actions/actions.c index 0958e5638e..4542163ade 100644 --- a/examples/msg/actions/actions.c +++ b/examples/msg/actions/actions.c @@ -518,6 +518,8 @@ static void action_finalize(xbt_dynar_t action) process_globals_t globals = (process_globals_t) MSG_process_get_data(MSG_process_self()); if (globals){ xbt_dynar_free_container(&(globals->isends)); + xbt_dynar_free_container(&(globals->irecvs)); + xbt_dynar_free_container(&(globals->tasks)); free(globals); } } diff --git a/src/msg/msg_actions.c b/src/msg/msg_actions.c index 685eaa850f..6410d2221e 100644 --- a/src/msg/msg_actions.c +++ b/src/msg/msg_actions.c @@ -98,6 +98,7 @@ static int MSG_action_runner(int argc, char *argv[]) } xbt_dynar_free(&evt); } + fclose(fp); } return 0; diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index bf93694e4d..ba89057986 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -1308,7 +1308,7 @@ static void model_full_set_route(routing_component_t rc, const char *src, (void*)link_route_to_test, (int_f_cpvoid_cpvoid_t) surf_pointer_resource_cmp), "The route between \"%s\" and \"%s\" already exists", src,dst); - xbt_free(link_route_to_test); + xbt_dynar_free(&link_route_to_test); } else { -- 2.20.1