fix memory leak when /proc/yaffs is read
[yaffs2.git] / yaffs_vfs_multi.c
index a36d9bfaa9d2ba8c21bcf5af02095ab947b07002..e4edb2cb357e328f8c906c7b01cf02ba9dd13a5a 100644 (file)
@@ -3687,6 +3687,7 @@ static struct file_operations procfs_ops = {
        .open  = yaffs_proc_open,
        .read  = seq_read,
        .write = yaffs_proc_write,
+       .release = single_release,
 };
 
 static int yaffs_procfs_init(void)