svn commit: r198884 - stable/8/sys/boot/common

[ Available lists | Index of svn-src-all | Month of Nov 2009 | Week of 4 Nov 2009 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Christian Brueffer <brueffer@FreeBSD.org>
Date
4 Nov 2009 13:06:09
Subject
svn commit: r198884 - stable/8/sys/boot/common
Message-ID
200911041306.nA4D698O032335@svn.freebsd.org


[ Hide this part ]
Author: brueffer
Date: Wed Nov 4 13:06:09 2009
New Revision: 198884
URL: http://svn.freebsd.org/changeset/base/198884

Log:
MFC: r198537

Close a file descriptor leak in an error case.

Modified:
stable/8/sys/boot/common/commands.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)

Modified: stable/8/sys/boot/common/commands.c
==============================================================================
--- stable/8/sys/boot/common/commands.c Wed Nov 4 12:43:31 2009 (r198883)
+++ stable/8/sys/boot/common/commands.c Wed Nov 4 13:06:09 2009 (r198884)
@@ -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.082 seconds