diff options
author | Jiri Kosina <jkosina@suse.cz> | 2008-06-24 14:45:27 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-07-23 15:25:21 +0200 |
commit | 4db1c62c9991e62b441672db7f227e722776adc4 (patch) | |
tree | fba1946ddedc94c81423fe07cf1d8061794d55fa | |
parent | f472f80034ae5d0be7d7196c7e65d0ca8890afb4 (diff) |
HID: fix memory leak in hidraw_release
hidraw_release() forgot to free the linked list structure, causing memory
leak.
Reported-by: Juan Marcos Diez Esteban <juan_m_diez@yahoo.es>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/hidraw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index 0c6b4d4e7e27..8ecd77525103 100644 --- a/drivers/hid/hidraw.c +++ b/drivers/hid/hidraw.c @@ -211,6 +211,8 @@ static int hidraw_release(struct inode * inode, struct file * file) kfree(list->hidraw); } + kfree(list); + return 0; } |