Input: sidewinder - fix memory leak
authorJesper Juhl <[email protected]>
Tue, 30 May 2006 03:28:05 +0000 (23:28 -0400)
committerDmitry Torokhov <[email protected]>
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 <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
drivers/input/joystick/sidewinder.c