Browse Source

HPCC-10844 Fix minor leak in type processing

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 11 năm trước cách đây
mục cha
commit
e9ddb9377b
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      ecl/hql/hqlgram.y

+ 2 - 1
ecl/hql/hqlgram.y

@@ -806,7 +806,8 @@ explicitRowType
     : explicitRowType1
     | LINKCOUNTED explicitRowType1
                         {
-                            $$.setType(setLinkCountedAttr($2.getType(), true));
+                            Owned<ITypeInfo> rowType = $2.getType();
+                            $$.setType(setLinkCountedAttr(rowType, true));
                             $$.setPosition($1);
                         }
     ;