Module Name: src
Committed By: gson
Date: Fri Nov 13 13:49:09 UTC 2009
Modified Files:
src/bin/sh: arith.y
Log Message:
Removed return statement in parser action that caused a memory leak with
the new yacc, making "sh MAKEDEV -MM init" consume 27 MB of virtual memory
with the result that NetBSD could no longer be installed on a 32 MB system.
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/bin/sh/arith.y
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/sh/arith.y
diff -u src/bin/sh/arith.y:1.18 src/bin/sh/arith.y:1.19
--- src/bin/sh/arith.y:1.18 Sun Mar 25 06:29:26 2007
+++ src/bin/sh/arith.y Fri Nov 13 13:49:09 2009
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: arith.y,v 1.18 2007/03/25 06:29:26 apb Exp $ */
+/* $NetBSD: arith.y,v 1.19 2009/11/13 13:49:09 gson Exp $ */
/*-
* Copyright (c) 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)arith.y 8.3 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: arith.y,v 1.18 2007/03/25 06:29:26 apb Exp $");
+__RCSID("$NetBSD: arith.y,v 1.19 2009/11/13 13:49:09 gson Exp $");
#endif
#endif /* not lint */
@@ -83,7 +83,6 @@
* the desired result elsewhere.
*/
arith_result = $1;
- return 0;
}
;