fixed memory leak due to last change
authorFrank Mori Hess <fmhess@speakeasy.net>
Tue, 30 Jan 2001 20:24:57 +0000 (20:24 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Tue, 30 Jan 2001 20:24:57 +0000 (20:24 +0000)
comedi/comedi_fops.c

index 3357d75425c55345051c7dbff9f216c73614156e..cac5d2f2fec92db9bcc331dee8acd7686d29c229 100644 (file)
@@ -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;
 }