Skip to content

Commit

Permalink
Merge pull request #18751 from jakesmith/HPCC-31993-jptree-hasprop-leak
Browse files Browse the repository at this point in the history
HPCC-31993 Fix jptree hasProp leak

Reviewed-by: Gavin Halliday <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Jun 11, 2024
2 parents 181e700 + 4bfc06f commit 193a669
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions system/jlib/jptree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1368,9 +1368,8 @@ bool PTree::hasProp(const char * xpath) const
}
else
{
IPropertyTreeIterator *iter = getElements(xpath);
Owned<IPropertyTreeIterator> iter = getElements(xpath);
bool res = iter->first();
iter->Release();
return res;
}
}
Expand Down

0 comments on commit 193a669

Please sign in to comment.