[libvirt] [PATCH] qemu: plug memory leak
Matthias Bolte
matthias.bolte at googlemail.com
Wed Nov 24 21:30:34 UTC 2010
2010/11/24 Eric Blake <eblake at redhat.com>:
> https://bugzilla.redhat.com/show_bug.cgi?id=656795
>
> * src/qemu/qemu_monitor.c (qemuMonitorFree): Also free the buffer.
> ---
> src/qemu/qemu_monitor.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c
> index 86ed82f..85d0d0f 100644
> --- a/src/qemu/qemu_monitor.c
> +++ b/src/qemu/qemu_monitor.c
> @@ -199,6 +199,7 @@ static void qemuMonitorFree(qemuMonitorPtr mon)
> if (virCondDestroy(&mon->notify) < 0)
> {}
> virMutexDestroy(&mon->lock);
> + VIR_FREE(mon->buffer);
> VIR_FREE(mon);
> }
>
> --
> 1.7.3.2
>
ACK.
Matthias
More information about the libvir-list
mailing list