From: Arnaud Giersch Date: Tue, 20 May 2014 16:00:35 +0000 (+0200) Subject: Free previously set process data. X-Git-Tag: v3_11~55 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c9e14224862bdfbb1c7cfc4b96748aa23872df1b Free previously set process data. --- diff --git a/src/smpi/smpi_global.c b/src/smpi/smpi_global.c index fbf18b4e80..02d4a9f729 100644 --- a/src/smpi/smpi_global.c +++ b/src/smpi/smpi_global.c @@ -93,6 +93,7 @@ void smpi_process_init(int *argc, char ***argv) if(temp_bar != NULL) data->finalization_barrier = temp_bar; data->index = index; data->instance_id = instance_id; + xbt_free(simcall_process_get_data(proc)); simcall_process_set_data(proc, data); if (*argc > 3) { free((*argv)[1]);