Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
f8f8ea4306
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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);
                         }
     ;