Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[codacy/cppcheck] Potential memory leak.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 4 Feb 2019 09:42:31 +0000 (10:42 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 4 Feb 2019 09:42:31 +0000 (10:42 +0100)
src/smpi/colls/coll_tuned_topo.cpp

index f43cbc5..27f20da 100644 (file)
@@ -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;
         }
       }