X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c540b8009e2e13d461ecaa7cf17f68950b3539fb..ab1a94e98438ed2d29533aca9e613d667237c3d0:/src/smpi/smpi_pmpi.cpp?ds=sidebyside diff --git a/src/smpi/smpi_pmpi.cpp b/src/smpi/smpi_pmpi.cpp index 6a56ecc2e5..cf6d2f1a4a 100644 --- a/src/smpi/smpi_pmpi.cpp +++ b/src/smpi/smpi_pmpi.cpp @@ -3174,13 +3174,12 @@ int PMPI_Info_dup(MPI_Info info, MPI_Info *newinfo){ } int PMPI_Info_delete(MPI_Info info, char *key){ - xbt_ex_t e; if (info == nullptr || key==nullptr) return MPI_ERR_ARG; - TRY { + try { xbt_dict_remove(info->info_dict, key); - }CATCH(e){ - xbt_ex_free(e); + } + catch(xbt_ex& e){ return MPI_ERR_INFO_NOKEY; } return MPI_SUCCESS;