HPCC-18668 Resource leak in rtlrecord.cpp Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
@@ -162,7 +162,7 @@ static unsigned expandNestedRows(unsigned idx, const char *prefix, const RtlFiel
if (isIfBlock)
{
nestIfBlock = new IfBlockInfo(*cur, inIfBlock, ifblocks.ordinality());
- ifblocks.append(inIfBlock);
+ ifblocks.append(nestIfBlock);
}
const RtlFieldInfo * const * nested = type->queryFields();
if (nested)