X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1bfdc9a38c22af6a9becf133be154a2fa2bc6589..b99f784b5bc219788376c65e06fe86b943353b0a:/src/smpi/smpi_deployment.c 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); } -