Module Name: src Committed By: bouyer Date: Tue Dec 17 20:52:10 UTC 2013
Modified Files: src/sys/compat/common [netbsd-6]: compat_util.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.44.14.1 src/sys/compat/common/compat_util.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/compat/common/compat_util.c diff -u src/sys/compat/common/compat_util.c:1.44 src/sys/compat/common/compat_util.c:1.44.14.1 --- src/sys/compat/common/compat_util.c:1.44 Fri Nov 19 06:44:35 2010 +++ src/sys/compat/common/compat_util.c Tue Dec 17 20:52:10 2013 @@ -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.14.1 2013/12/17 20:52:10 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.14.1 2013/12/17 20:52:10 bouyer Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -139,6 +139,7 @@ emul_find_interp(struct lwp *l, struct e error = namei(&nd); if (error != 0) { epp->ep_interp = NULL; + pathbuf_destroy(pb); return error; }