DragonFly BSD
DragonFly commits List (threaded) for 2010-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Fix pty registration, memory leak


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 12 Aug 2010 19:01:51 -0700 (PDT)

commit ddac2002e1c0b5c573dc3e05d7d2ebbab9547af6
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]