Author: pjd
Date: Thu Jun 7 22:49:09 2012
New Revision: 236727
URL: http://svn.freebsd.org/changeset/base/236727
Log:
Plug file reference leak in capability failure case.
Sponsored by: FreeBSD Foundation
MFC after: 3 days
Modified:
head/sys/kern/tty.c
Modified: head/sys/kern/tty.c
==============================================================================
--- head/sys/kern/tty.c Thu Jun 7 22:47:53 2012 (r236726)
+++ head/sys/kern/tty.c Thu Jun 7 22:49:09 2012 (r236727)
@@ -1841,7 +1841,7 @@ ttyhook_register(struct tty **rtp, struc
fp_cap = fp;
error = cap_funwrap(fp_cap, CAP_TTYHOOK, &fp);
if (error)
- return (error);
+ goto done1;
#endif
/*
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"