summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2020-09-15 11:28:48 -0400
committerRay Strode <rstrode@redhat.com>2020-09-18 15:51:48 -0400
commitb6f347a1eaf56d6baaaa4fc149fc0dbc100da217 (patch)
treeb9b16b739e79a8060ff928bb2826d1470e05d48d
parent26f2a2c5adfef9a165dbf707f2bac4b183c64d84 (diff)
downloadgdm-wip/fix-some-fd-leaks.tar.gz
xdmcp-display-factory: Clear launch environment when done with itwip/fix-some-fd-leaks
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.
-rw-r--r--daemon/gdm-xdmcp-display-factory.c2
1 files changed, 2 insertions, 0 deletions
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 *