Skip to content

Commit

Permalink
HPCC-31993 Fix jptree hasProp leak
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Smith <[email protected]>
  • Loading branch information
jakesmith committed Jun 11, 2024
1 parent 181e700 commit 4bfc06f
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 4bfc06f

Please sign in to comment.