Skip to contentSkip to conversation

Input: gpio_keys - fix a memory leak

PATCH Applied Axel Lin 2 participants 2 messages Jun 28, 2011 – Jun 29, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 Input: gpio_keys - fix a memory leak

---
 drivers/input/keyboard/gpio_keys.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/input/keyboard/gpio_keys.c +1 -0
index 6d0e2f6..cc4bdec 100644
@@ -569,6 +569,7 @@ static int __devexit gpio_keys_remove(struct platform_device *pdev)
 	}
 
 	input_unregister_device(input);
+	kfree(ddata);
 
 	return 0;
 }
Signature · 1 line
1.7.4.1