diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-28 06:16:46 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-28 06:29:35 +0100 |
commit | 1544c17ffd548f353916e626a05821f5da07b242 (patch) | |
tree | fcd0dc4e773e74ffd338ff799703742d24f2a161 | |
parent | ca4e453d760f3001ef34ba0beda4b2e5f7e24be1 (diff) |
coverity#705626 and coverity#705627: fix memory leak
Change-Id: I68f43d07798ccb3fc3a5ab438992ac74f4cd262a
-rw-r--r-- | basic/source/comp/exprtree.cxx | 1 |
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() ); |