提交 4db1c62c 编写于 作者: J Jiri Kosina

HID: fix memory leak in hidraw_release

hidraw_release() forgot to free the linked list structure, causing memory
leak.
Reported-by: NJuan Marcos Diez Esteban <juan_m_diez@yahoo.es>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 f472f800
......@@ -211,6 +211,8 @@ static int hidraw_release(struct inode * inode, struct file * file)
kfree(list->hidraw);
}
kfree(list);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册