virtio: Free rnd virqueue at unrealize()
commit522bbb191cec2ac799f4bd662b0fcf6f00dfc2ea
authorEugenio Pérez <eperezma@redhat.com>
Fri, 25 Oct 2019 08:35:23 +0000 (25 10:35 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 25 Oct 2019 11:46:22 +0000 (25 07:46 -0400)
tree902bf29ed2d6ca48e96007cbc46a62ed1df716ee
parent4a0117cf6e04d568a1963540bc0fa133b4d09b33
virtio: Free rnd virqueue at unrealize()

The function virtio_del_queue was not called at unrealize() callback.

This was detected due to add an allocated element on the vq introduce
in future commits (used_elems) and running address sanitizer memory
leak detector.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <20191025083527.30803-5-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-rng.c