summaryrefslogtreecommitdiff
path: root/connectivity/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2022-02-27 14:14:18 +0100
committerJulien Nabet <serval2412@yahoo.fr>2022-02-27 16:01:26 +0100
commit1142dc2398de2e2be0e057ecb432ad9c8895313a (patch)
tree059d4224fadf5d3e6b8e56bb8726702bc619a519 /connectivity/source
parentd25142d2c33dea9fa9332a0cbc07694129ce48ed (diff)
cid#1500397: Resource leak
Change-Id: I765df1eef9ccf447cdd0a80497c1ca6f22bb9e42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130625 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/parse/sqlnode.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx
index 9ea10bbaafb2..1a10526c505e 100644
--- a/connectivity/source/parse/sqlnode.cxx
+++ b/connectivity/source/parse/sqlnode.cxx
@@ -1862,7 +1862,7 @@ void OSQLParseNode::disjunctiveNormalForm(OSQLParseNode*& pSearchCondition)
OSQLParseNode* pNewRight = nullptr;
// cut left from parent
- pSearchCondition->removeAt(sal_uInt32(0));
+ delete pSearchCondition->removeAt(sal_uInt32(0));
pNewRight = MakeANDNode(pLeft,pOr->removeAt(2));
pNewLeft = MakeANDNode(new OSQLParseNode(*pLeft),pOr->removeAt(sal_uInt32(0)));