Source-Changes-HG archive

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

[src/netbsd-6]: src/usr.bin/sed Pull up following revision(s) (requested by m...



details:   https://anonhg.NetBSD.org/src/rev/1ab805452bd4
branches:  netbsd-6
changeset: 775597:1ab805452bd4
user:      snj <snj%NetBSD.org@localhost>
date:      Tue Dec 25 21:10:35 2012 +0000

description:
Pull up following revision(s) (requested by msaitoh in ticket #764):
        usr.bin/sed/compile.c: revision 1.38
Fix memory leak.

diffstat:

 usr.bin/sed/compile.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 38cd871d42f0 -r 1ab805452bd4 usr.bin/sed/compile.c
--- a/usr.bin/sed/compile.c     Tue Dec 25 21:07:04 2012 +0000
+++ b/usr.bin/sed/compile.c     Tue Dec 25 21:10:35 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compile.c,v 1.37 2010/02/19 16:35:27 tnn Exp $ */
+/*     $NetBSD: compile.c,v 1.37.8.1 2012/12/25 21:10:35 snj Exp $     */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -76,7 +76,7 @@
 #if 0
 static char sccsid[] = "@(#)compile.c  8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: compile.c,v 1.37 2010/02/19 16:35:27 tnn Exp $");
+__RCSID("$NetBSD: compile.c,v 1.37.8.1 2012/12/25 21:10:35 snj Exp $");
 #endif
 #endif /* not lint */
 
@@ -474,6 +474,7 @@
                err(COMPILE, "RE error: %s", strregerror(eval, *repp));
        if (maxnsub < (*repp)->re_nsub)
                maxnsub = (*repp)->re_nsub;
+       free(re);
        return (p);
 }
 



Home | Main Index | Thread Index | Old Index