Re: [Qemu-devel] [PATCH] libqos: add qvirtqueue_cleanup()

2016-06-14 Thread Stefan Hajnoczi
On Thu, May 05, 2016 at 04:53:35PM +0100, Stefan Hajnoczi wrote: > qvirtqueue_setup() allocates the vring and virtqueue state. So far > there has been no function to free it. Callers have been using > guest_free() for the vring but forgot to free the QVirtQueue state. > > This patch solves the m

[Qemu-devel] [PATCH] libqos: add qvirtqueue_cleanup()

2016-05-05 Thread Stefan Hajnoczi
qvirtqueue_setup() allocates the vring and virtqueue state. So far there has been no function to free it. Callers have been using guest_free() for the vring but forgot to free the QVirtQueue state. This patch solves the memory leak by introducing qvirtqueue_cleanup(). Signed-off-by: Stefan Hajn