OSDN Git Service

Input: gpio_keys - fix a memory leak
authorAxel Lin <axel.lin@gmail.com>
Tue, 28 Jun 2011 21:23:30 +0000 (14:23 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 29 Jun 2011 07:22:47 +0000 (00:22 -0700)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/gpio_keys.c

index 320b59a..97bada4 100644 (file)
@@ -569,6 +569,7 @@ static int __devexit gpio_keys_remove(struct platform_device *pdev)
        }
 
        input_unregister_device(input);
+       kfree(ddata);
 
        return 0;
 }