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

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

 



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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]