Re: Comedi:Help!Memory Leak using ni_pcimio_common (NI-6533) and cmd

On Tuesday 18 October 2005 07:45 pm, Michael Brooks wrote:
> After a few hours my system dies with an out of memory error. Around
> line 902 in comedi_fops.c (do_cmd_ioctl) a kmalloc is done for
> async->cmd.chanlist.  I can't find any place that this memory might be
> released, and I suspect this may be the problem. but all attempts I've
> made to fix it cause other troubles. Am I missing something somewhere?

This should fix the leak:

https://cvs.comedi.org/cgi-bin/viewcvs.cgi/comedi/comedi/comedi_fops.c.diff?r1=1.156&r2=1.157

The rest of the problems you reported sound like driver bugs, but you 
didn't say what board/driver you are using.

-- 
Frank

Received on 2005-10-19Z01:41:43