X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/70ed180f3ce3495678d048e9e396ef5eb65a6a99..18e13a976a3f6f1d695de22d17c3b91befdba176:/src/smpi/smpi_base.c diff --git a/src/smpi/smpi_base.c b/src/smpi/smpi_base.c index 96028af185..333c590c91 100644 --- a/src/smpi/smpi_base.c +++ b/src/smpi/smpi_base.c @@ -22,12 +22,13 @@ void smpi_process_init(int* argc, char*** argv) { index = atoi((*argv)[1]); data = smpi_process_remote_data(index); SIMIX_process_set_data(proc, data); - DEBUG2("<%d> New process in the game: %p", index, proc); if (*argc > 2) { + free((*argv)[1]); memmove(&(*argv)[1], &(*argv)[2], sizeof(char *) * (*argc - 2)); (*argv)[(*argc) - 1] = NULL; } (*argc)--; + DEBUG2("<%d> New process in the game: %p", index, proc); } void smpi_process_destroy(void) {