From: Daniel Henrique Barboza Date: Thu, 9 Jan 2020 18:33:43 +0000 (-0300) Subject: qemu_domain.c: remove redundant virObjectUnref() X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=749ec34a568e06fcc746f613e8be195c9c13f8b2;p=libvirt.git qemu_domain.c: remove redundant virObjectUnref() The 'caps' variable in qemuDomainObjPrivateXMLParseAutomaticPlacement() is set to auto clean via g_autoptr(), but a 'virObjectUnref(caps)' is being executed in the 'cleanup' label. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Michal Privoznik --- diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 05a8d3de38..f10b27d64a 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -3106,7 +3106,6 @@ qemuDomainObjPrivateXMLParseAutomaticPlacement(xmlXPathContextPtr ctxt, ret = 0; cleanup: - virObjectUnref(caps); VIR_FREE(nodeset); VIR_FREE(cpuset);