From fbcfdff9990148733abdbe360a0772247bc9b07e Mon Sep 17 00:00:00 2001 From: brueffer Date: Wed, 28 Oct 2009 10:06:27 +0000 Subject: Close a file descriptor leak in an error case. PR: 138374 Submitted by: Patroklos Argyroudis MFC after: 1 week --- sys/boot/common/commands.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/boot/common') diff --git a/sys/boot/common/commands.c b/sys/boot/common/commands.c index 0559d15..7fba019 100644 --- a/sys/boot/common/commands.c +++ b/sys/boot/common/commands.c @@ -150,6 +150,7 @@ command_help(int argc, char *argv[]) break; default: command_errmsg = "usage is 'help []"; + close(hfd); return(CMD_ERROR); } -- cgit v1.1