MFC: r198537
Close a file descriptor leak in an error case.
This commit is contained in:
parent
efab19fed7
commit
e4e76802b8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=198884
@ -150,6 +150,7 @@ command_help(int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
command_errmsg = "usage is 'help <topic> [<subtopic>]";
|
command_errmsg = "usage is 'help <topic> [<subtopic>]";
|
||||||
|
close(hfd);
|
||||||
return(CMD_ERROR);
|
return(CMD_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user