DragonFly commits List (threaded) for 2013-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel - Fix memory leak on iocom terminaion
commit 085cb1ddbf6bf775e9fcdbf09d7e0d0d44711b11
Author: Matthew Dillon <dillon@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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]