svn commit: r198537 - head/sys/boot/common

[ Available lists | Index of svn-src-all | Month of Oct 2009 | Week of 28 Oct 2009 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Christian Brueffer <brueffer@FreeBSD.org>
Date
28 Oct 2009 10:06:28
Subject
svn commit: r198537 - head/sys/boot/common
Message-ID
200910281006.n9SA6R5t057813@svn.freebsd.org


[ Hide this part ]
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);
}


Elapsed time: 0.364 seconds