]> err.no Git - linux-2.6/commit
Input: sidewinder - fix memory leak
authorJesper Juhl <jesper.juhl@gmail.com>
Tue, 30 May 2006 03:28:05 +0000 (23:28 -0400)
committerDmitry Torokhov <dtor_core@ameritech.net>
Tue, 30 May 2006 03:28:05 +0000 (23:28 -0400)
commit7363cfc8666692a5263c646e68e54900b536cd7e
tree33bc3ffb6d9b452dc1f4b2d597f7943a659034b6
parentf39b25bed373cf11a2c0490bee8b0ac430aadff4
Input: sidewinder - fix memory leak

In sw_connect we leak 'buf' and 'idbuf' when we do not leave via one of
the fail* labels. This was spotted by the coverity checker.

Patch is compile tested only due to lack of hardware.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/joystick/sidewinder.c