Plug file reference leak in capability failure case.

Sponsored by:	FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2012-06-07 22:49:09 +00:00
parent 62b1b42507
commit f6ed2ff79d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236727

View File

@ -1841,7 +1841,7 @@ ttyhook_register(struct tty **rtp, struct proc *p, int fd,
fp_cap = fp;
error = cap_funwrap(fp_cap, CAP_TTYHOOK, &fp);
if (error)
return (error);
goto done1;
#endif
/*