Blame SOURCES/0001-shell_dbus_acquire_name-Don-t-leak-error.patch

580c05
From 7f1a258ff9fc768a7fc13e5c37e1fd6d7ab5c33b Mon Sep 17 00:00:00 2001
580c05
From: Matthias Clasen <mclasen@redhat.com>
580c05
Date: Thu, 24 Sep 2015 13:16:56 -0400
580c05
Subject: [PATCH 1/3] shell_dbus_acquire_name: Don't leak error
580c05
580c05
If fatal is not set, we return from this function in the error
580c05
case. Don't leak the GError if that happens.
580c05
---
580c05
 src/main.c | 1 +
580c05
 1 file changed, 1 insertion(+)
580c05
580c05
diff --git a/src/main.c b/src/main.c
580c05
index d984eec..fb0ea43 100644
580c05
--- a/src/main.c
580c05
+++ b/src/main.c
580c05
@@ -69,6 +69,7 @@ shell_dbus_acquire_name (GDBusProxy  *bus,
580c05
                                                        &error)))
580c05
     {
580c05
       g_printerr ("failed to acquire %s: %s\n", name, error->message);
580c05
+      g_clear_error (&error);
580c05
       if (!fatal)
580c05
         return;
580c05
       exit (1);
580c05
-- 
580c05
2.5.3
580c05