svn commit: r243585 - stable/8/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Tue Nov 27 01:35:30 UTC 2012
Author: mjg
Date: Tue Nov 27 01:35:29 2012
New Revision: 243585
URL: http://svnweb.freebsd.org/changeset/base/243585
Log:
MFC r243234:
Fix possible fp reference leak in posix_openpt
Modified:
stable/8/sys/kern/tty_pts.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/kern/ (props changed)
Modified: stable/8/sys/kern/tty_pts.c
==============================================================================
--- stable/8/sys/kern/tty_pts.c Tue Nov 27 01:33:23 2012 (r243584)
+++ stable/8/sys/kern/tty_pts.c Tue Nov 27 01:35:29 2012 (r243585)
@@ -833,6 +833,7 @@ posix_openpt(struct thread *td, struct p
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 svn-src-all
mailing list