svn commit: r236727 - head/sys/kern
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Jun 7 22:49:09 UTC 2012
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
/*
More information about the svn-src-all
mailing list