REVIEW: Memory Leak - condition::readAndConditions()

11,502 (1,560 direct, 9,942 indirect) bytes in 39 blocks are definitely lost
This commit is contained in:
Scott Giese 2020-08-22 17:42:58 -05:00
parent f210d6ba94
commit bdd7878d19

View File

@ -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++) {