Module Name:    src
Committed By:   bouyer
Date:           Tue Dec 17 21:00:24 UTC 2013

Modified Files:
        src/sys/compat/common [netbsd-5-2]: compat_util.c

Log Message:
Pull up following revision(s) (requested by martin in ticket #1893):
        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.41 -r1.41.24.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.41 src/sys/compat/common/compat_util.c:1.41.24.1
--- src/sys/compat/common/compat_util.c:1.41	Mon Apr 28 20:23:41 2008
+++ src/sys/compat/common/compat_util.c	Tue Dec 17 21:00:24 2013
@@ -1,4 +1,4 @@
-/* 	$NetBSD: compat_util.c,v 1.41 2008/04/28 20:23:41 martin Exp $	*/
+/* 	$NetBSD: compat_util.c,v 1.41.24.1 2013/12/17 21:00:24 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_util.c,v 1.41 2008/04/28 20:23:41 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_util.c,v 1.41.24.1 2013/12/17 21:00:24 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -106,6 +106,7 @@ emul_find_interp(struct lwp *l, struct e
 	error = namei(&nd);
 	if (error != 0) {
 		epp->ep_interp = NULL;
+		pathbuf_destroy(pb);
 		return error;
 	}
 

Reply via email to