Re: [libvirt] Free name in xenDaemonLookupByID(), if virGetDomain() fails

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

 



On Tue, Sep 08, 2009 at 02:35:40PM +0200, Matthias Bolte wrote:
> Subject says it all.
> 
> Matthias

> diff --git a/src/xend_internal.c b/src/xend_internal.c
> index 2fa08f1..ed6fcac 100644
> --- a/src/xend_internal.c
> +++ b/src/xend_internal.c
> @@ -3723,7 +3723,7 @@ xenDaemonLookupByID(virConnectPtr conn, int id) {
>      }
>  
>      ret = virGetDomain(conn, name, uuid);
> -    if (ret == NULL) return NULL;
> +    if (ret == NULL) goto error;
>  
>      ret->id = id;
>      VIR_FREE(name);


  ACK, applied !
Thanks for chasing and for the patch mime-type :-)

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
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]