From b3fb748ccf0b6fb8da145de78f4cab7bc642bea5 Mon Sep 17 00:00:00 2001 From: Christian Brueffer Date: Wed, 28 Oct 2009 10:06:27 +0000 Subject: [PATCH] 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(+) diff --git a/sys/boot/common/commands.c b/sys/boot/common/commands.c index 0559d1558c4..7fba019153b 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); }