X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/de5e36cc7e45014c43cf9290b5ac8380072d69ad..9c3926e2c40bcec2394899543f06d2e1762b64e0:/src/smpi/smpi_comm.cpp diff --git a/src/smpi/smpi_comm.cpp b/src/smpi/smpi_comm.cpp index ec94c1e1c7..3db4a9ab82 100644 --- a/src/smpi/smpi_comm.cpp +++ b/src/smpi/smpi_comm.cpp @@ -305,7 +305,7 @@ void smpi_comm_cleanup_attributes(MPI_Comm comm){ xbt_dict_foreach(comm->attributes, cursor, key, value){ smpi_comm_key_elem elem = static_cast(xbt_dict_get_or_null(smpi_comm_keyvals, reinterpret_cast(key))); - if(elem!=NULL && elem->delete_fn) + if(elem!=NULL && elem->delete_fn!=NULL) elem->delete_fn(comm, *key, value, &flag); } xbt_dict_free(&comm->attributes);