[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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 redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]