diff options
author | Ray Strode <rstrode@redhat.com> | 2020-09-15 11:28:48 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2020-09-18 15:51:48 -0400 |
commit | b6f347a1eaf56d6baaaa4fc149fc0dbc100da217 (patch) | |
tree | b9b16b739e79a8060ff928bb2826d1470e05d48d | |
parent | 26f2a2c5adfef9a165dbf707f2bac4b183c64d84 (diff) | |
download | gdm-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.c | 2 |
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 * |