From bdd7878d190d0d1512c3e738f236fca6a2ae1118 Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sat, 22 Aug 2020 17:42:58 -0500 Subject: [PATCH] REVIEW: Memory Leak - condition::readAndConditions() 11,502 (1,560 direct, 9,942 indirect) bytes in 39 blocks are definitely lost --- simgear/props/condition.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/simgear/props/condition.cxx b/simgear/props/condition.cxx index 1da575a4..ffb15745 100644 --- a/simgear/props/condition.cxx +++ b/simgear/props/condition.cxx @@ -502,6 +502,7 @@ readNotCondition( SGPropertyNode *prop_root, const SGPropertyNode *node ) static SGCondition * readAndConditions( SGPropertyNode *prop_root, const SGPropertyNode *node ) { + // REVIEW: Memory Leak - 11,502 (1,560 direct, 9,942 indirect) bytes in 39 blocks are definitely lost SGAndCondition * andCondition = new SGAndCondition; int nChildren = node->nChildren(); for (int i = 0; i < nChildren; i++) {