From 1544c17ffd548f353916e626a05821f5da07b242 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Thu, 28 Feb 2013 06:16:46 +0100 Subject: coverity#705626 and coverity#705627: fix memory leak Change-Id: I68f43d07798ccb3fc3a5ab438992ac74f4cd262a --- basic/source/comp/exprtree.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx index 1037e77e190f..da77346ca66a 100644 --- a/basic/source/comp/exprtree.cxx +++ b/basic/source/comp/exprtree.cxx @@ -303,6 +303,7 @@ SbiExprNode* SbiExpression::Term( const KeywordSymbolInfo* pKeywordSymbolInfo ) SbiConstDef* pConst = pDef->GetConstDef(); if( pConst ) { + delete pPar; if( pConst->GetType() == SbxSTRING ) { return new SbiExprNode( pParser, pConst->GetString() ); -- cgit