aboutsummaryrefslogtreecommitdiffstats
path: root/libversit/vcc.y
diff options
context:
space:
mode:
authorChris Toshok <toshok@src.gnome.org>2000-05-08 10:15:36 +0800
committerChris Toshok <toshok@src.gnome.org>2000-05-08 10:15:36 +0800
commit608783a45d9b85133e0302a915add2708ba9bbc4 (patch)
treeef4dd64630f6dadd41e763979a8c073f533806de /libversit/vcc.y
parent9ce4dd5c57a5de7dace3059e3164cfd0f0e89044 (diff)
downloadgsoc2013-evolution-608783a45d9b85133e0302a915add2708ba9bbc4.tar
gsoc2013-evolution-608783a45d9b85133e0302a915add2708ba9bbc4.tar.gz
gsoc2013-evolution-608783a45d9b85133e0302a915add2708ba9bbc4.tar.bz2
gsoc2013-evolution-608783a45d9b85133e0302a915add2708ba9bbc4.tar.lz
gsoc2013-evolution-608783a45d9b85133e0302a915add2708ba9bbc4.tar.xz
gsoc2013-evolution-608783a45d9b85133e0302a915add2708ba9bbc4.tar.zst
gsoc2013-evolution-608783a45d9b85133e0302a915add2708ba9bbc4.zip
call finiLex in error case to avoid a memleak.
svn path=/trunk/; revision=2895
Diffstat (limited to 'libversit/vcc.y')
-rw-r--r--libversit/vcc.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/libversit/vcc.y b/libversit/vcc.y
index ad607cf4fe..f8eb9e6556 100644
--- a/libversit/vcc.y
+++ b/libversit/vcc.y
@@ -1160,8 +1160,10 @@ static VObject* Parse_MIMEHelper()
vObjList = 0;
curObj = 0;
- if (yyparse() != 0)
+ if (yyparse() != 0) {
+ finiLex();
return 0;
+ }
finiLex();
return vObjList;