mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +00:00
Ignore return value of virDomainObjUnref
* src/libxl/libxl_driver.c: use ignore_value() in libxlDomainObjUnref and libxlCreateDomEvents
This commit is contained in:
parent
88416593e1
commit
6d60ca5d58
@ -107,7 +107,7 @@ libxlDomainObjUnref(void *data)
|
|||||||
{
|
{
|
||||||
virDomainObjPtr vm = 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,
|
VIR_EVENT_HANDLE_READABLE | VIR_EVENT_HANDLE_ERROR,
|
||||||
libxlEventHandler,
|
libxlEventHandler,
|
||||||
vm, libxlDomainObjUnref)) < 0) {
|
vm, libxlDomainObjUnref)) < 0) {
|
||||||
virDomainObjUnref(vm);
|
ignore_value(virDomainObjUnref(vm));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user