Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
leaks --
authordegomme <augustin.degomme@unibas.ch>
Wed, 27 Apr 2016 23:59:56 +0000 (01:59 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Thu, 28 Apr 2016 00:02:23 +0000 (02:02 +0200)
src/smpi/colls/reduce-mvapich-two-level.c
src/smpi/colls/reduce_scatter-mpich.c
src/smpi/colls/smpi_mvapich2_selector.c

index be67ddd..8bb18d0 100644 (file)
@@ -180,6 +180,8 @@ int smpi_coll_tuned_reduce_mvapich2_two_level( void *sendbuf,
                                   root, comm);
         }
         /* We are done */
+        if(tmp_buf!=NULL) 
+          smpi_free_tmp_buffer((void *) ((char *) tmp_buf + true_lb));
         goto fn_exit;
     }
     
index 447cc33..11adf04 100644 (file)
@@ -480,8 +480,8 @@ int smpi_coll_tuned_reduce_scatter_mpich_rdb(void *sendbuf, void *recvbuf, int r
                     }
                 }
 
-                smpi_datatype_free(&sendtype);
-                smpi_datatype_free(&recvtype);
+                smpi_datatype_unuse(sendtype);
+                smpi_datatype_unuse(recvtype);
 
                 mask <<= 1;
                 i++;
index 91e40d3..b15b5ad 100644 (file)
@@ -866,7 +866,7 @@ int smpi_coll_tuned_reduce_scatter_mvapich2(void *sendbuf, void *recvbuf, int *r
           recvcnts, datatype,
           op, comm);
   }
-
+  xbt_free(disps);
   return mpi_errno;
 
 }