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

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



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.


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