[libvirt] [PATCH] Fix leak of mime type string in screenshot dispatcher

Eric Blake eblake at redhat.com
Mon May 16 17:34:25 UTC 2011


On 05/16/2011 11:29 AM, Daniel P. Berrange wrote:
> * daemon/remote.c: Free mime string
> ---
>  daemon/remote.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/daemon/remote.c b/daemon/remote.c
> index bb01c89..ea36bf5 100644
> --- a/daemon/remote.c
> +++ b/daemon/remote.c
> @@ -1746,6 +1746,7 @@ remoteDispatchDomainScreenshot(struct qemud_server *server ATTRIBUTE_UNUSED,
>  cleanup:
>      if (rv < 0)
>          remoteDispatchError(rerr);
> +    VIR_FREE(mime);
>      if (dom)
>          virDomainFree(dom);
>      if (stream && rv != 0) {

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110516/a2a942b5/attachment-0001.sig>


More information about the libvir-list mailing list