git: kernel - Fix memory leak on iocom terminaion
Matthew Dillon
dillon at crater.dragonflybsd.org
Fri Feb 1 10:01:49 PST 2013
commit 085cb1ddbf6bf775e9fcdbf09d7e0d0d44711b11
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Fri Feb 1 09:54:43 2013 -0800
kernel - Fix memory leak on iocom terminaion
* freerd_state was being cleaned up by the reader thread, but during
decomissioning the writer thread can simulate incoming packets
to cleanly shutdown open transactions, and this can reload
freerd_state.
* Move the cleanup for freerd_state and freewr_state out of the
reader/writer threads and into kdmsg_iocom_uninit() proper.
* Fixes dangling 112 bytes of memory left allocated after uninit.
Summary of changes:
sys/kern/kern_dmsg.c | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/085cb1ddbf6bf775e9fcdbf09d7e0d0d44711b11
--
DragonFly BSD source repository
More information about the Commits
mailing list