From: Arnaud Giersch Date: Mon, 4 Feb 2019 09:42:31 +0000 (+0100) Subject: [codacy/cppcheck] Potential memory leak. X-Git-Tag: v3_22~396 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6327dcc144dab9abeace9fce8ac0c467a632f681 [codacy/cppcheck] Potential memory leak. --- diff --git a/src/smpi/colls/coll_tuned_topo.cpp b/src/smpi/colls/coll_tuned_topo.cpp index f43cbc5a35..27f20da01b 100644 --- a/src/smpi/colls/coll_tuned_topo.cpp +++ b/src/smpi/colls/coll_tuned_topo.cpp @@ -451,6 +451,7 @@ ompi_coll_tree_t* ompi_coll_tuned_topo_build_in_order_bmtree(MPI_Comm comm, int childs++; if (childs == MAXTREEFANOUT) { XBT_DEBUG("coll:tuned:topo:build_bmtree max fanout incorrect %d needed %d", MAXTREEFANOUT, childs); + delete bmtree; return NULL; } }