[libvirt] [libvirt-glib] gconfig: Fix small leak in test-domain-create
Christophe Fergeau
cfergeau at redhat.com
Wed Jun 17 08:49:05 UTC 2015
Ping?
On Mon, Apr 13, 2015 at 11:09:31AM +0200, Christophe Fergeau wrote:
> The object returned by gvir_config_domain_disk_get_driver() must be
> unref'ed when no longer used.
> ---
> libvirt-gconfig/tests/test-domain-create.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libvirt-gconfig/tests/test-domain-create.c b/libvirt-gconfig/tests/test-domain-create.c
> index eb4b945..417d3d0 100644
> --- a/libvirt-gconfig/tests/test-domain-create.c
> +++ b/libvirt-gconfig/tests/test-domain-create.c
> @@ -284,6 +284,7 @@ int main(int argc, char **argv)
> g_assert(gvir_config_domain_disk_driver_get_copy_on_read(driver));
> g_assert(gvir_config_domain_disk_get_target_bus(disk) == GVIR_CONFIG_DOMAIN_DISK_BUS_IDE);
> g_str_const_check(gvir_config_domain_disk_get_target_dev(disk), "hda");
> + g_object_unref(driver);
>
>
> /* network interfaces node */
> --
> 2.3.5
>
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150617/c2e6f04f/attachment-0001.sig>
More information about the libvir-list
mailing list