Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh Removed return statement in parser action that caused...



details:   https://anonhg.NetBSD.org/src/rev/05ccf0208f9e
branches:  trunk
changeset: 749016:05ccf0208f9e
user:      gson <gson%NetBSD.org@localhost>
date:      Fri Nov 13 13:49:09 2009 +0000

description:
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.

diffstat:

 bin/sh/arith.y |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ea60c80d7b5f -r 05ccf0208f9e bin/sh/arith.y
--- a/bin/sh/arith.y    Fri Nov 13 09:51:13 2009 +0000
+++ b/bin/sh/arith.y    Fri Nov 13 13:49:09 2009 +0000
@@ -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;
                }
        ;
 



Home | Main Index | Thread Index | Old Index