--- libvirt-gconfig/libvirt-gconfig-domain-hostdev-pci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libvirt-gconfig/libvirt-gconfig-domain-hostdev-pci.c b/libvirt-gconfig/libvirt-gconfig-domain-hostdev-pci.c index ed1d146..ce31056 100644 --- a/libvirt-gconfig/libvirt-gconfig-domain-hostdev-pci.c +++ b/libvirt-gconfig/libvirt-gconfig-domain-hostdev-pci.c @@ -125,6 +125,7 @@ void gvir_config_domain_hostdev_pci_set_address(GVirConfigDomainHostdevPci *host } } gvir_config_object_set_child(source, node); + g_object_unref(source); } GVirConfigDomainAddressPci *gvir_config_domain_hostdev_pci_get_address(GVirConfigDomainHostdevPci *hostdev) @@ -141,6 +142,7 @@ GVirConfigDomainAddressPci *gvir_config_domain_hostdev_pci_get_address(GVirConfi address = gvir_config_object_get_child_with_type(source, "address", GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI); + g_object_unref(source); return GVIR_CONFIG_DOMAIN_ADDRESS_PCI(address); } @@ -183,6 +185,7 @@ void gvir_config_domain_hostdev_pci_set_rom(GVirConfigDomainHostdevPci *hostdev, xmlSetProp(rom_node, (const xmlChar *) "file", (const xmlChar *) rom_file); + g_object_unref(rom); } const gchar *gvir_config_domain_hostdev_pci_get_rom(GVirConfigDomainHostdevPci *hostdev, -- 2.5.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list