From: Markus Groß Date: Tue, 29 Mar 2011 10:59:09 +0000 (+0800) Subject: Ignore return value of virDomainObjUnref X-Git-Tag: v0.9.0~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d60ca5d58ca5235f37ea48e415987ba5f95868c;p=thirdparty%2Flibvirt.git Ignore return value of virDomainObjUnref * src/libxl/libxl_driver.c: use ignore_value() in libxlDomainObjUnref and libxlCreateDomEvents --- diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c index b8b8ee85e3..80a43a045a 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; }