summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-28 08:34:34 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-28 10:53:13 +0100
commit33cf5700cfd0f1645d015f9f32abc4337e9bd330 (patch)
tree11ce5d1361baed1127198f76b132cf934f34b0dc /starmath
parent821ef2bb05cb6bddda65d2214ff4d80e7d872664 (diff)
coverity#705726: fix memory leak
Change-Id: I8ccbd73a937e7506a64ae1925ca20d420117fb73
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/parse.cxx4
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;
}
}