Commit 4db1c62c authored by Jiri Kosina's avatar Jiri Kosina

HID: fix memory leak in hidraw_release

hidraw_release() forgot to free the linked list structure, causing memory
leak.
Reported-by: default avatarJuan Marcos Diez Esteban <juan_m_diez@yahoo.es>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment