[gdm] gdm-x-session: fix tiny leak in error path
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] gdm-x-session: fix tiny leak in error path
- Date: Fri, 5 Feb 2016 15:43:53 +0000 (UTC)
commit 7b9798030f13b3035403efd0b271f866ae4de53d
Author: Ray Strode <rstrode redhat com>
Date: Fri Feb 5 10:42:20 2016 -0500
gdm-x-session: fix tiny leak in error path
I wasn't cleaning up the dbus connection in out: so
it leaked in an error path.
Spotted by Michael Catanzaro
daemon/gdm-x-session.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gdm-x-session.c b/daemon/gdm-x-session.c
index c01cc5e..41e4118 100644
--- a/daemon/gdm-x-session.c
+++ b/daemon/gdm-x-session.c
@@ -496,10 +496,10 @@ spawn_bus (State *state,
}
g_variant_unref (reply);
- g_clear_object (&connection);
is_running = TRUE;
out:
+ g_clear_object (&connection);
g_clear_object (&data_stream);
g_clear_object (&subprocess);
g_clear_object (&launcher);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]