diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-28 08:34:34 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-28 10:53:13 +0100 |
commit | 33cf5700cfd0f1645d015f9f32abc4337e9bd330 (patch) | |
tree | 11ce5d1361baed1127198f76b132cf934f34b0dc /starmath | |
parent | coverity#705651: fix memory leak (diff) | |
download | core-33cf5700cfd0f1645d015f9f32abc4337e9bd330.tar.gz core-33cf5700cfd0f1645d015f9f32abc4337e9bd330.zip |
coverity#705726: fix memory leak
Change-Id: I8ccbd73a937e7506a64ae1925ca20d420117fb73
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/parse.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index dbd45052df42..95bda3b7240d 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -1052,7 +1052,9 @@ void SmParser::Align() // allow for just one align statement in 5.0 if (CONVERT_40_TO_50 != GetConversion() && TokenInGroup(TGALIGN)) - { Error(PE_DOUBLE_ALIGN); + { + Error(PE_DOUBLE_ALIGN); + delete pSNode; return; } } |