Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -211,6 +211,8 @@ static int hidraw_release(struct inode * inode, struct file * file)
			kfree(list->hidraw);
	}

	kfree(list);

	return 0;
}