Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Free group_lookup at finalize.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 7 Nov 2013 16:23:15 +0000 (17:23 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 7 Nov 2013 16:23:15 +0000 (17:23 +0100)
Also remove useless assignments: variable are already reset to NULL
by xbt_dict_free.

src/smpi/smpi_f77.c

index d32614f..0f49e2e 100644 (file)
@@ -213,13 +213,10 @@ void mpi_finalize_(int* ierr) {
    running_processes--;
    if(running_processes==0){
      xbt_dict_free(&op_lookup);
-     op_lookup = NULL;
      xbt_dict_free(&datatype_lookup);
-     datatype_lookup = NULL;
      xbt_dict_free(&request_lookup);
-     request_lookup = NULL;
+     xbt_dict_free(&group_lookup);
      xbt_dict_free(&comm_lookup);
-     comm_lookup = NULL;
    }
 }