ANDROID: input: keychord: Fix for a memory leak in keychord.
authorMohan Srinivasan <srmohan@google.com>
Wed, 9 Aug 2017 19:36:33 +0000 (12:36 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
commit29be5c0c2ef587e7958ef16cc8357e8880e92cd9
tree5c2491016bf150a18ff6c138e70b224ced73f2eb
parent8253552b9900cf4497e1c7d15a83ddc5995abcd8
ANDROID: input: keychord: Fix for a memory leak in keychord.

Fixes a steady memory leak in the keychord release code. A close of
the keychord device will leak 1 keychord structure. Easily
reproducible by a simple program that does an open()->write()->close()
of the keychord device.

Bug: 64483974
Change-Id: I1fa402c666cffb00b8cfd6379d9fe47a0989152c
Signed-off-by: Mohan Srinivasan <srmohan@google.com>
drivers/input/misc/keychord.c