svn commit: r198885 - stable/7/sys/boot/common
Christian Brueffer
brueffer at FreeBSD.org
Wed Nov 4 13:08:57 UTC 2009
Author: brueffer
Date: Wed Nov 4 13:08:57 2009
New Revision: 198885
URL: http://svn.freebsd.org/changeset/base/198885
Log:
MFC: r198537
Close a file descriptor leak in an error case.
Modified:
stable/7/sys/boot/common/commands.c
Directory Properties:
stable/7/sys/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
Modified: stable/7/sys/boot/common/commands.c
==============================================================================
--- stable/7/sys/boot/common/commands.c Wed Nov 4 13:06:09 2009 (r198884)
+++ stable/7/sys/boot/common/commands.c Wed Nov 4 13:08:57 2009 (r198885)
@@ -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-stable-7
mailing list