Date: Wed, 28 Oct 2009 10:06:27 +0000 (UTC) From: Christian Brueffer <brueffer@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r198537 - head/sys/boot/common Message-ID: <200910281006.n9SA6R5t057813@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910281006.n9SA6R5t057813>