svn commit: r198537 - head/sys/boot/common
Christian Brueffer
brueffer at FreeBSD.org
Wed Oct 28 10:06:28 UTC 2009
Author: brueffer
Date: Wed Oct 28 10:06:27 2009
New Revision: 198537
URL: http://svn.freebsd.org/changeset/base/198537
Log:
Close a file descriptor leak in an error case.
PR: 138374
Submitted by: Patroklos Argyroudis <argp at census-labs.com>
MFC after: 1 week
Modified:
head/sys/boot/common/commands.c
Modified: head/sys/boot/common/commands.c
==============================================================================
--- head/sys/boot/common/commands.c Wed Oct 28 09:55:42 2009 (r198536)
+++ head/sys/boot/common/commands.c Wed Oct 28 10:06:27 2009 (r198537)
@@ -150,6 +150,7 @@ command_help(int argc, char *argv[])
break;
default:
command_errmsg = "usage is 'help <topic> [<subtopic>]";
+ close(hfd);
return(CMD_ERROR);
}
More information about the svn-src-all
mailing list