Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix memleaks with MPI_*_get_info, when info is duplicated.
[simgrid.git] / src / smpi / mpi / smpi_file.cpp
index 9dc8f69..4ad8f8f 100644 (file)
@@ -301,9 +301,6 @@ namespace smpi{
 
   MPI_Info File::info()
   {
 
   MPI_Info File::info()
   {
-    if (info_ == MPI_INFO_NULL)
-      info_ = new Info();
-    info_->ref();
     return info_;
   }
 
     return info_;
   }