Input: gpio_keys - fix a memory leak

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
Axel Lin 2011-06-28 14:23:30 -07:00 committed by Dmitry Torokhov
parent 58c244009e
commit 1638207910

View File

@ -569,6 +569,7 @@ static int __devexit gpio_keys_remove(struct platform_device *pdev)
}
input_unregister_device(input);
kfree(ddata);
return 0;
}