Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MPI Win: add check if we try to delete a locked or opened window.
[simgrid.git] / src / smpi / bindings / smpi_pmpi_win.cpp
index 26b6532..9c7e74d 100644 (file)
@@ -105,7 +105,7 @@ int PMPI_Win_free( MPI_Win* win){
     return MPI_ERR_WIN;
   }
   const SmpiBenchGuard suspend_bench;
-  delete *win;
+  return simgrid::smpi::Win::del(*win);
   return MPI_SUCCESS;
 }