Re: [PATCHv2 1/8] Ignore return value of virDomainObjUnref

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

 



Markus Groß wrote:
> ---
>  src/libxl/libxl_driver.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
> index b8b8ee8..80a43a0 100644
> --- a/src/libxl/libxl_driver.c
> +++ b/src/libxl/libxl_driver.c
> @@ -107,7 +107,7 @@ libxlDomainObjUnref(void *data)
>  {
>      virDomainObjPtr vm = data;
>  
> -    virDomainObjUnref(vm);
> +    ignore_value(virDomainObjUnref(vm));
>  }
>  
>  /*
> @@ -279,7 +279,7 @@ libxlCreateDomEvents(virDomainObjPtr vm)
>               VIR_EVENT_HANDLE_READABLE | VIR_EVENT_HANDLE_ERROR,
>               libxlEventHandler,
>               vm, libxlDomainObjUnref)) < 0) {
> -        virDomainObjUnref(vm);
> +        ignore_value(virDomainObjUnref(vm));
>          goto error;
>      }
>   

ACK.

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