mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
MFC: r198537
Close a file descriptor leak in an error case.
This commit is contained in:
parent
efab19fed7
commit
e4e76802b8
1 changed files with 1 additions and 0 deletions
|
|
@ -150,6 +150,7 @@ command_help(int argc, char *argv[])
|
|||
break;
|
||||
default:
|
||||
command_errmsg = "usage is 'help <topic> [<subtopic>]";
|
||||
close(hfd);
|
||||
return(CMD_ERROR);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue