Browse Source

Merge pull request #5413 from ghalliday/issue10844b

HPCC-10844 Fix minor leak in type processing

Reviewed-By: Jamie Noss <james.noss@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 11 năm trước cách đây
mục cha
commit
f8f8ea4306
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

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