input: fix memory leak
commitfca4774a96843ba9d32a5d5d1c3826e1478facae
authorlinzhecheng <linzhecheng@huawei.com>
Mon, 25 Dec 2017 02:37:30 +0000 (25 10:37 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 12 Jan 2018 13:20:39 +0000 (12 14:20 +0100)
tree67a6f460fdca8c11955268dc2add0233864fbdf7
parent997eba28a3ed5400a80f754bf3a1c8044b75b9ff
input: fix memory leak

If kbd_queue is not empty and queue_count >= queue_limit,
we should free evt.

Change-Id: Ieeacf90d5e7e370a40452ec79031912d8b864d83
Signed-off-by: linzhecheng <linzhecheng@huawei.com>
Message-id: 20171225023730.5512-1-linzhecheng@huawei.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/input.c