Browse Source

Merge pull request #10607 from richardkchapman/coverity-rtlrecord

HPCC-18668 Resource leak in rtlrecord.cpp

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 7 years ago
parent
commit
6696ea2e3e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/eclrtl/rtlrecord.cpp

+ 1 - 1
rtl/eclrtl/rtlrecord.cpp

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