diff options
| author | christos <christos@NetBSD.org> | 2006-09-29 14:24:55 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2006-09-29 14:24:55 +0000 |
| commit | ed106f137bde2e7cc0a58fb348f803439995ebc0 (patch) | |
| tree | eb879d8926a2603f626536550ddc3dee9bb4b8ff /sys/compat/linux/common/linux_exec.c | |
| parent | b7ae68fde0d8ef1c03714e8bbb1ee7c6118ea93b (diff) | |
Coverity CID 2990: fix memory leak (from Arnaud Lacombe)
Diffstat (limited to 'sys/compat/linux/common/linux_exec.c')
| -rw-r--r-- | sys/compat/linux/common/linux_exec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/compat/linux/common/linux_exec.c b/sys/compat/linux/common/linux_exec.c index 7ba04443933..bed9bbc60ce 100644 --- a/sys/compat/linux/common/linux_exec.c +++ b/sys/compat/linux/common/linux_exec.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_exec.c,v 1.86 2006/09/02 06:52:13 christos Exp $ */ +/* $NetBSD: linux_exec.c,v 1.87 2006/09/29 14:24:55 christos Exp $ */ /*- * Copyright (c) 1994, 1995, 1998, 2000 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.86 2006/09/02 06:52:13 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.87 2006/09/29 14:24:55 christos Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -191,6 +191,7 @@ linux_e_proc_init(p, parent, forkflags) #ifdef DIAGNOSTIC if (ep == NULL) { killproc(p, "FORK_SHAREVM while emuldata is NULL\n"); + FREE(e, M_EMULDATA); return; } #endif |
