[gdm/wip/fix-some-fd-leaks: 4/4] xdmcp-display-factory: Clear launch environment when done with it
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/wip/fix-some-fd-leaks: 4/4] xdmcp-display-factory: Clear launch environment when done with it
- Date: Fri, 18 Sep 2020 19:52:12 +0000 (UTC)
commit b6f347a1eaf56d6baaaa4fc149fc0dbc100da217
Author: Ray Strode <rstrode redhat com>
Date: Tue Sep 15 11:28:48 2020 -0400
xdmcp-display-factory: Clear launch environment when done with it
The XDMCP disply factory examines the sessions of its displays'
launch environments when the displays change status.
Unfortunately it leaks a reference to the launch environment when
doing that.
This commit fixes the reference leak which leads to an fd leak.
daemon/gdm-xdmcp-display-factory.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/daemon/gdm-xdmcp-display-factory.c b/daemon/gdm-xdmcp-display-factory.c
index 220ee3af..ce8f026e 100644
--- a/daemon/gdm-xdmcp-display-factory.c
+++ b/daemon/gdm-xdmcp-display-factory.c
@@ -2118,6 +2118,8 @@ on_display_status_changed (GdmDisplay *display,
g_assert_not_reached ();
break;
}
+
+ g_clear_object (&launch_environment);
}
static GdmDisplay *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]