From b99f784b5bc219788376c65e06fe86b943353b0a Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 20 May 2014 17:26:27 +0200 Subject: [PATCH] Free smpi_instances. --- src/smpi/smpi_deployment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smpi/smpi_deployment.c b/src/smpi/smpi_deployment.c index 83714ad7b1..55daf3bea6 100644 --- a/src/smpi/smpi_deployment.c +++ b/src/smpi/smpi_deployment.c @@ -87,10 +87,10 @@ void smpi_deployment_cleanup_instances(){ xbt_dict_cursor_t cursor = NULL; s_smpi_mpi_instance_t* instance = NULL; char *name = NULL; - xbt_dict_foreach((xbt_dict_t) smpi_instances, cursor, name, instance) { + xbt_dict_foreach(smpi_instances, cursor, name, instance) { while (smpi_group_unuse(smpi_comm_group(instance->comm_world)) > 0); xbt_free(instance->comm_world); xbt_barrier_destroy(instance->finalization_barrier); } + xbt_dict_free(&smpi_instances); } - -- 2.20.1