connectivity/source/parse/sqlnode.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1142dc2398de2e2be0e057ecb432ad9c8895313a
Author:     Julien Nabet <[email protected]>
AuthorDate: Sun Feb 27 14:14:18 2022 +0100
Commit:     Julien Nabet <[email protected]>
CommitDate: Sun Feb 27 16:01:26 2022 +0100

    cid#1500397: Resource leak
    
    Change-Id: I765df1eef9ccf447cdd0a80497c1ca6f22bb9e42
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130625
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <[email protected]>

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)));

Reply via email to