Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/altq/altqstat Close fd in error case. Found by cppc...
details: https://anonhg.NetBSD.org/src/rev/5c2081b701b5
branches: trunk
changeset: 760389:5c2081b701b5
user: wiz <wiz%NetBSD.org@localhost>
date: Tue Jan 04 09:13:22 2011 +0000
description:
Close fd in error case. Found by cppcheck.
diffstat:
usr.sbin/altq/altqstat/qdisc_conf.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 06b26b9f8a25 -r 5c2081b701b5 usr.sbin/altq/altqstat/qdisc_conf.c
--- a/usr.sbin/altq/altqstat/qdisc_conf.c Tue Jan 04 09:13:19 2011 +0000
+++ b/usr.sbin/altq/altqstat/qdisc_conf.c Tue Jan 04 09:13:22 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: qdisc_conf.c,v 1.5 2008/05/02 19:07:44 xtraeme Exp $ */
+/* $NetBSD: qdisc_conf.c,v 1.6 2011/01/04 09:13:22 wiz Exp $ */
/* $KAME: qdisc_conf.c,v 1.5 2002/10/26 06:59:54 kjc Exp $ */
/*
* Copyright (C) 1999-2000
@@ -91,6 +91,7 @@
}
if (ioctl(fd, ALTQGTYPE, &qtypereq) < 0) {
warn("ALTQGQTYPE");
+ close(fd);
return (0);
}
close(fd);
Home |
Main Index |
Thread Index |
Old Index