Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
leaks --
authordegomme <augustin.degomme@unibas.ch>
Fri, 29 Apr 2016 13:25:37 +0000 (15:25 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Fri, 29 Apr 2016 13:25:37 +0000 (15:25 +0200)
src/smpi/smpi_base.cpp
src/smpi/smpi_pmpi.cpp

index 1b0e4f4..82cc5a9 100644 (file)
@@ -1365,9 +1365,9 @@ void smpi_mpi_reduce(void *sendbuf, void *recvbuf, int count, MPI_Datatype datat
     xbt_free(tmpbufs);
     xbt_free(requests);
 
     xbt_free(tmpbufs);
     xbt_free(requests);
 
-    if( sendbuf == MPI_IN_PLACE ) {
-      smpi_free_tmp_buffer(sendtmpbuf);
-    }
+  }
+  if( sendbuf == MPI_IN_PLACE ) {
+    smpi_free_tmp_buffer(sendtmpbuf);
   }
 }
 
   }
 }
 
index 707e29f..49c769a 100644 (file)
@@ -3177,6 +3177,7 @@ int PMPI_Info_dup(MPI_Info info, MPI_Info *newinfo){
     return MPI_ERR_ARG;
   *newinfo = xbt_new(s_smpi_mpi_info_t, 1);
   (*newinfo)->info_dict= xbt_dict_new_homogeneous(NULL);
     return MPI_ERR_ARG;
   *newinfo = xbt_new(s_smpi_mpi_info_t, 1);
   (*newinfo)->info_dict= xbt_dict_new_homogeneous(NULL);
+  (*newinfo)->refcount=1;
   xbt_dict_cursor_t cursor = NULL;
   int *key;
   void* data;
   xbt_dict_cursor_t cursor = NULL;
   int *key;
   void* data;