[libgovirt] examples: Fix GByteArray leak in list-vms-async
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [libgovirt] examples: Fix GByteArray leak in list-vms-async
- Date: Mon,  3 Aug 2015 15:56:26 +0000 (UTC)
commit cf97783951aaa468f4199e868941901029e1d29b
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Mon Jul 27 12:01:55 2015 +0200
    examples: Fix GByteArray leak in list-vms-async
 examples/list-vms-async.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/examples/list-vms-async.c b/examples/list-vms-async.c
index 83fb9fa..43a99a9 100644
--- a/examples/list-vms-async.c
+++ b/examples/list-vms-async.c
@@ -164,6 +164,7 @@ static void fetched_ca_cert_cb(GObject *source_object,
         return;
     }
     g_print("\tCA certificate: %p\n", ca_cert);
+    g_byte_array_unref(ca_cert);
     ovirt_proxy_fetch_api_async(proxy, NULL, api_fetched_cb, user_data);
 }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]