1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-25 01:34:11 +03:00

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 <danielhb413@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Daniel Henrique Barboza 2020-01-09 15:33:43 -03:00 committed by Michal Privoznik
parent 738bedbf4e
commit 749ec34a56

View File

@ -3106,7 +3106,6 @@ qemuDomainObjPrivateXMLParseAutomaticPlacement(xmlXPathContextPtr ctxt,
ret = 0; ret = 0;
cleanup: cleanup:
virObjectUnref(caps);
VIR_FREE(nodeset); VIR_FREE(nodeset);
VIR_FREE(cpuset); VIR_FREE(cpuset);