Source-Changes-HG archive

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

[src/netbsd-6-0]: src/sys/compat/common Pull up following revision(s) (reques...



details:   https://anonhg.NetBSD.org/src/rev/c82c9106ea41
branches:  netbsd-6-0
changeset: 774892:c82c9106ea41
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Tue Dec 17 20:52:13 2013 +0000

description:
Pull up following revision(s) (requested by martin in ticket #999):
        sys/compat/common/compat_util.c: revision 1.45
Free pathbuf in an error path.
>From Maxime Villard.

diffstat:

 sys/compat/common/compat_util.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r af285f9ff893 -r c82c9106ea41 sys/compat/common/compat_util.c
--- a/sys/compat/common/compat_util.c   Tue Dec 17 20:48:32 2013 +0000
+++ b/sys/compat/common/compat_util.c   Tue Dec 17 20:52:13 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_util.c,v 1.44 2010/11/19 06:44:35 dholland Exp $        */
+/*     $NetBSD: compat_util.c,v 1.44.20.1 2013/12/17 20:52:13 bouyer Exp $     */
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_util.c,v 1.44 2010/11/19 06:44:35 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_util.c,v 1.44.20.1 2013/12/17 20:52:13 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -139,6 +139,7 @@
        error = namei(&nd);
        if (error != 0) {
                epp->ep_interp = NULL;
+               pathbuf_destroy(pb);
                return error;
        }
 



Home | Main Index | Thread Index | Old Index