Blame SOURCES/0049-proxy-Do-not-leak-display-object.patch

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