X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dbb0c80acf5f0b020ed570a418601afc09e693e3..3907e83884bae6278656e9cd2cb7ef92a8f707fb:/src/smpi/bindings/smpi_pmpi_win.cpp diff --git a/src/smpi/bindings/smpi_pmpi_win.cpp b/src/smpi/bindings/smpi_pmpi_win.cpp index 34349d6a5f..a125ec9b0f 100644 --- a/src/smpi/bindings/smpi_pmpi_win.cpp +++ b/src/smpi/bindings/smpi_pmpi_win.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -107,7 +107,8 @@ int PMPI_Win_free( MPI_Win* win){ return MPI_ERR_WIN; } const SmpiBenchGuard suspend_bench; - return simgrid::smpi::Win::del(*win); + simgrid::smpi::Win::del(*win); + *win = MPI_WIN_NULL; return MPI_SUCCESS; }