mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Close a file descriptor leak in an error case.
PR: 138374 Submitted by: Patroklos Argyroudis <argp@census-labs.com> MFC after: 1 week
This commit is contained in:
parent
8d5ed6e717
commit
b3fb748ccf
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