From 608783a45d9b85133e0302a915add2708ba9bbc4 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Mon, 8 May 2000 02:15:36 +0000 Subject: call finiLex in error case to avoid a memleak. svn path=/trunk/; revision=2895 --- libversit/vcc.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libversit') 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; -- cgit