X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3a1ea70a418f393ca1677074e928c664022295bd..6b9d22415cc883df71086ea19d220cbfba0a3230:/src/smpi/include/smpi_keyvals.hpp diff --git a/src/smpi/include/smpi_keyvals.hpp b/src/smpi/include/smpi_keyvals.hpp index 4526b03643..d32378651e 100644 --- a/src/smpi/include/smpi_keyvals.hpp +++ b/src/smpi/include/smpi_keyvals.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2021. 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. */ @@ -35,7 +35,7 @@ struct s_smpi_key_elem_t { int refcount; }; -typedef s_smpi_key_elem_t* smpi_key_elem; +using smpi_key_elem = s_smpi_key_elem_t*; namespace simgrid{ namespace smpi{ @@ -90,6 +90,7 @@ template int Keyval::keyval_free(int* keyval){ }else{ elem->refcount--; } + *keyval = MPI_KEYVAL_INVALID; return MPI_SUCCESS; }