mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Plug file reference leak in capability failure case.
Sponsored by: FreeBSD Foundation MFC after: 3 days
This commit is contained in:
parent
62b1b42507
commit
f6ed2ff79d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236727
@ -1841,7 +1841,7 @@ ttyhook_register(struct tty **rtp, struct proc *p, int fd,
|
|||||||
fp_cap = fp;
|
fp_cap = fp;
|
||||||
error = cap_funwrap(fp_cap, CAP_TTYHOOK, &fp);
|
error = cap_funwrap(fp_cap, CAP_TTYHOOK, &fp);
|
||||||
if (error)
|
if (error)
|
||||||
return (error);
|
goto done1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user