lkml.org 
[lkml]   [1996]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PS/2- auxiliary device memmory leak fix.


Hello Linus!

As far as I know there is currently no garbage collecting behind the
init_module() cleanup_module() mechanis present :-).

This one-liner fixes some interresting memmory leak, which I found in the driver
for the PS/2 auxiliary device. The queue is dynamically allocated in the
corresponding init_module routine few lines above.

Please include this in the next relase ...

Marcin

diff -cr char/psaux.c char/psaux.c
*** linux/drivers/char/psaux.c Mon Sep 9 10:36:22 1996
--- linux/drivers/char/psaux.c Mon Sep 9 10:37:21 1996
***************
*** 567,572 ****
--- 567,573 ----
void cleanup_module(void)
{
misc_deregister(&psaux_mouse);
+ kfree(queue);
}
#endif


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.045 / U:1.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site