git: kernel - Fix pty registration, memory leak

看板DFBSD_commit作者時間15年前 (2010/08/13 10:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1CPAwbtd (DFBSD_commit)