소스 검색

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 년 전
부모
커밋
f8f8ea4306
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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);
                         }
     ;