summaryrefslogtreecommitdiff
path: root/basic/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-28 06:16:46 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-28 06:29:35 +0100
commit1544c17ffd548f353916e626a05821f5da07b242 (patch)
treefcd0dc4e773e74ffd338ff799703742d24f2a161 /basic/source
parentca4e453d760f3001ef34ba0beda4b2e5f7e24be1 (diff)
coverity#705626 and coverity#705627: fix memory leak
Change-Id: I68f43d07798ccb3fc3a5ab438992ac74f4cd262a
Diffstat (limited to 'basic/source')
-rw-r--r--basic/source/comp/exprtree.cxx1
1 files changed, 1 insertions, 0 deletions
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() );