[Midnightbsd-cvs] src [8461] trunk/sys/kern/tty_pts.c: get rid of possible reference leak
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 18 17:59:55 EDT 2016
Revision: 8461
http://svnweb.midnightbsd.org/src/?rev=8461
Author: laffer1
Date: 2016-09-18 17:59:55 -0400 (Sun, 18 Sep 2016)
Log Message:
-----------
get rid of possible reference leak
Modified Paths:
--------------
trunk/sys/kern/tty_pts.c
Modified: trunk/sys/kern/tty_pts.c
===================================================================
--- trunk/sys/kern/tty_pts.c 2016-09-18 21:59:27 UTC (rev 8460)
+++ trunk/sys/kern/tty_pts.c 2016-09-18 21:59:55 UTC (rev 8461)
@@ -836,6 +836,7 @@
error = pts_alloc(FFLAGS(uap->flags & O_ACCMODE), td, fp);
if (error != 0) {
fdclose(td->td_proc->p_fd, fp, fd, td);
+ fdrop(fp, td);
return (error);
}
More information about the Midnightbsd-cvs
mailing list