Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern At least pretend to not leak memory in sysctl initi...
details: https://anonhg.NetBSD.org/src/rev/b092adeb7d39
branches: trunk
changeset: 785354:b092adeb7d39
user: pooka <pooka%NetBSD.org@localhost>
date: Sun Mar 10 17:55:42 2013 +0000
description:
At least pretend to not leak memory in sysctl initialization.
This commit message would be longer if it included opinions about
sysctllog vs. CTLFLAG_PERMANENT ...
diffstat:
sys/kern/kern_uidinfo.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 5b5e6831fd56 -r b092adeb7d39 sys/kern/kern_uidinfo.c
--- a/sys/kern/kern_uidinfo.c Sun Mar 10 17:05:12 2013 +0000
+++ b/sys/kern/kern_uidinfo.c Sun Mar 10 17:55:42 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_uidinfo.c,v 1.7 2012/06/09 02:55:32 christos Exp $ */
+/* $NetBSD: kern_uidinfo.c,v 1.8 2013/03/10 17:55:42 pooka Exp $ */
/*-
* Copyright (c) 1982, 1986, 1991, 1993
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_uidinfo.c,v 1.7 2012/06/09 02:55:32 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_uidinfo.c,v 1.8 2013/03/10 17:55:42 pooka Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -85,13 +85,13 @@
return EINVAL;
}
+static struct sysctllog *kern_uidinfo_sysctllog;
+
static void
sysctl_kern_uidinfo_setup(void)
{
const struct sysctlnode *rnode, *cnode;
- struct sysctllog *kern_uidinfo_sysctllog;
- kern_uidinfo_sysctllog = NULL;
sysctl_createv(&kern_uidinfo_sysctllog, 0, NULL, &rnode,
CTLFLAG_PERMANENT,
CTLTYPE_NODE, "uidinfo",
Home |
Main Index |
Thread Index |
Old Index