diff --git a/drivers/input/misc/keychord.c b/drivers/input/misc/keychord.c index cf126d25c9ae..4f2aac414687 100644 --- a/drivers/input/misc/keychord.c +++ b/drivers/input/misc/keychord.c @@ -412,6 +412,7 @@ static int keychord_release(struct inode *inode, struct file *file) if (kdev->registered) input_unregister_handler(&kdev->input_handler); + kfree(kdev->keychords); kfree(kdev); return 0;