git: kernel - Fix pty registration, memory leak
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu Aug 12 19:02:53 PDT 2010
commit ddac2002e1c0b5c573dc3e05d7d2ebbab9547af6
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Thu Aug 12 18:55:20 2010 -0700
kernel - Fix pty registration, memory leak
* Properly unregister the pt_ioctl before freeing it.
* Free the pt_ioctl structure after destroying the device, fixing
a memory leak.
* Fix races in the sysctl_proc which iterates the tty list by using
a marker.
Summary of changes:
sys/kern/tty.c | 45 ++++++++++++++++++++++++++-------------------
sys/kern/tty_pty.c | 17 ++++++++++++++---
sys/sys/tty.h | 6 ++++--
3 files changed, 44 insertions(+), 24 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ddac2002e1c0b5c573dc3e05d7d2ebbab9547af6
--
DragonFly BSD source repository
More information about the Commits
mailing list