From: Frank Mori Hess Date: Tue, 30 Jan 2001 20:24:57 +0000 (+0000) Subject: fixed memory leak due to last change X-Git-Tag: r0_7_56~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ffe47064b8e8290595ce4af983559cd85be6c5f1;p=comedi.git fixed memory leak due to last change --- diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index 3357d754..cac5d2f2 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -1677,6 +1677,7 @@ static int comedi_close_v22(struct inode *inode,struct file *file) s = dev->subdevices + dev->write_subdev; s->mmap_count -= cfp->write_mmap_count; } + kfree(cfp); return 0; }