virtio-input: free event queue when finalizing
commit0f5a15e40ad1512c70d1323a73c7b073e32e17ee
authorLadi Prosek <lprosek@redhat.com>
Fri, 24 Mar 2017 14:24:49 +0000 (24 15:24 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 27 Mar 2017 10:14:44 +0000 (27 12:14 +0200)
treef2134a23219b9c8821a0117ff3791e6c2df8a2f7
parentea2afcf5b6727a577cf561fd8fe0d8c397ecc927
virtio-input: free event queue when finalizing

VirtIOInput.queue was never freed. This commit adds an explicit
g_free to virtio_input_finalize and switches the allocation
function from realloc to g_realloc in virtio_input_send.

Signed-off-by: Ladi Prosek <lprosek@redhat.com>
Message-id: 1490365490-4854-2-git-send-email-lprosek@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/input/virtio-input.c