summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-09 16:15:55 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-09 17:59:12 +0100
commitead0a6038b2eab1604ca53197e6728fb4ce9dc9c (patch)
tree25af5a582a6bfc097176fad5b4f94813db1ea411 /basic
parent1b4d60268c05d7a30ce789c30597e6ae705590be (diff)
coverity#705627: fix memory leak
Change-Id: I4f73f77b27d2ed28a9f97757105c8a6cc5521b33
Diffstat (limited to 'basic')
-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 da77346ca66a..fe5077b3ad42 100644
--- a/basic/source/comp/exprtree.cxx
+++ b/basic/source/comp/exprtree.cxx
@@ -304,6 +304,7 @@ SbiExprNode* SbiExpression::Term( const KeywordSymbolInfo* pKeywordSymbolInfo )
if( pConst )
{
delete pPar;
+ delete pvMoreParLcl;
if( pConst->GetType() == SbxSTRING )
{
return new SbiExprNode( pParser, pConst->GetString() );