X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fe1ed43699e1784d267f47d8c532e00cb344198d..305d783c9c259a5ec28836bdf697f73c6451aa2f:/src/smpi/mpi/smpi_win.cpp diff --git a/src/smpi/mpi/smpi_win.cpp b/src/smpi/mpi/smpi_win.cpp index 7b33c80243..b6d1f34e1e 100644 --- a/src/smpi/mpi/smpi_win.cpp +++ b/src/smpi/mpi/smpi_win.cpp @@ -97,6 +97,8 @@ int Win::del(Win* win){ } if (win->allocated_) xbt_free(win->base_); + if (win->mut_->get_owner() != nullptr) + win->mut_->unlock(); F2C::free_f(win->f2c_id()); win->cleanup_attr();