[libgovirt] Fix leak in ovirt_proxy_get_collection_xml_async()
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgovirt] Fix leak in ovirt_proxy_get_collection_xml_async()
- Date: Tue, 29 Oct 2013 17:02:43 +0000 (UTC)
commit dda5ea3a119a061f960d984b4865481335ec1807
Author: Christophe Fergeau <cfergeau redhat com>
Date: Tue Oct 29 17:59:53 2013 +0100
Fix leak in ovirt_proxy_get_collection_xml_async()
ovirt_rest_call_async will take a reference on 'call' when needed,
so we can release the reference we got through ovirt_rest_call_new()
after calling ovirt_rest_call_async()
govirt/ovirt-proxy.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/govirt/ovirt-proxy.c b/govirt/ovirt-proxy.c
index ef18dc7..43124d6 100644
--- a/govirt/ovirt-proxy.c
+++ b/govirt/ovirt-proxy.c
@@ -367,10 +367,10 @@ void ovirt_proxy_get_collection_xml_async(OvirtProxy *proxy,
call = ovirt_rest_call_new(proxy, "GET", href);
-
ovirt_rest_call_async(call, result, cancellable,
get_collection_xml_async_cb, data,
(GDestroyNotify)ovirt_proxy_get_collection_async_data_destroy);
+ g_object_unref(call);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]