Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/sbin/sysctl Pull up following revision(s) (requested by m...
details: https://anonhg.NetBSD.org/src/rev/44f1d128faf0
branches: netbsd-6
changeset: 775595:44f1d128faf0
user: snj <snj%NetBSD.org@localhost>
date: Tue Dec 25 21:01:14 2012 +0000
description:
Pull up following revision(s) (requested by msaitoh in ticket #757):
sbin/sysctl/sysctl.c: revision 1.149
Add missing free() in error path.
diffstat:
sbin/sysctl/sysctl.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 31795f26ca2f -r 44f1d128faf0 sbin/sysctl/sysctl.c
--- a/sbin/sysctl/sysctl.c Mon Dec 17 00:32:05 2012 +0000
+++ b/sbin/sysctl/sysctl.c Tue Dec 25 21:01:14 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysctl.c,v 1.140 2012/02/12 20:54:07 christos Exp $ */
+/* $NetBSD: sysctl.c,v 1.140.2.1 2012/12/25 21:01:14 snj Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
#if 0
static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: sysctl.c,v 1.140 2012/02/12 20:54:07 christos Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.140.2.1 2012/12/25 21:01:14 snj Exp $");
#endif
#endif /* not lint */
@@ -2337,6 +2337,7 @@
rc = prog_sysctl(name, namelen, kd, &sz, NULL, 0);
if (rc == -1) {
sysctlerror(1);
+ free(kd);
return;
}
Home |
Main Index |
Thread Index |
Old Index