19b088
From 61b2753958118b910dfbc9270cccfee80d165b0a Mon Sep 17 00:00:00 2001
19b088
From: "Eduardo Lima (Etrunko)" <etrunko@redhat.com>
19b088
Date: Thu, 3 Oct 2019 17:18:58 -0300
19b088
Subject: [PATCH] proxy: Do not leak display object
19b088
19b088
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
19b088
---
19b088
 govirt/ovirt-proxy.c | 2 +-
19b088
 1 file changed, 1 insertion(+), 1 deletion(-)
19b088
19b088
diff --git a/govirt/ovirt-proxy.c b/govirt/ovirt-proxy.c
19b088
index 74604dd..92c5ed0 100644
19b088
--- a/govirt/ovirt-proxy.c
19b088
+++ b/govirt/ovirt-proxy.c
19b088
@@ -636,7 +636,7 @@ static void ovirt_proxy_update_vm_display_ca(OvirtProxy *proxy)
19b088
             g_object_get(G_OBJECT(display), "ca-cert", &ca_cert, NULL);
19b088
             if (ca_cert != NULL) {
19b088
                 g_byte_array_unref(ca_cert);
19b088
-                ca_cert = NULL;
19b088
+                g_object_unref(display);
19b088
                 continue;
19b088
             }
19b088
 
19b088
-- 
19b088
2.21.0
19b088