lightdm-1.10.2-FD_leak.patch 1.37 KB
Newer Older
Rex Dieter's avatar
Rex Dieter committed
1
2
3
4
diff -up lightdm-1.10.2/src/greeter.c.FD_leak lightdm-1.10.2/src/greeter.c
--- lightdm-1.10.2/src/greeter.c.FD_leak	2014-09-07 18:29:36.000000000 -0500
+++ lightdm-1.10.2/src/greeter.c	2014-09-17 06:44:52.190389652 -0500
@@ -987,9 +987,15 @@ greeter_finalize (GObject *object)
Rex Dieter's avatar
Rex Dieter committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
         g_object_unref (self->priv->authentication_session);
     }
     if (self->priv->to_greeter_channel)
+    {
+        close(g_io_channel_unix_get_fd(self->priv->to_greeter_channel));
         g_io_channel_unref (self->priv->to_greeter_channel);
+    }
     if (self->priv->from_greeter_channel)
+    {
+        close(g_io_channel_unix_get_fd(self->priv->from_greeter_channel)); 
         g_io_channel_unref (self->priv->from_greeter_channel);
+    }
     if (self->priv->from_greeter_watch)
         g_source_remove (self->priv->from_greeter_watch);
 
Rex Dieter's avatar
Rex Dieter committed
20
21
22
23
diff -up lightdm-1.10.2/src/session.c.FD_leak lightdm-1.10.2/src/session.c
--- lightdm-1.10.2/src/session.c.FD_leak	2014-09-11 19:04:40.000000000 -0500
+++ lightdm-1.10.2/src/session.c	2014-09-17 06:44:52.191389641 -0500
@@ -459,6 +459,8 @@ session_watch_cb (GPid pid, gint status,
Rex Dieter's avatar
Rex Dieter committed
24
25
26
27
28
29
30
31
     if (session->priv->is_guest)
         guest_account_cleanup (session->priv->username);
 
+    close(session->priv->to_child_input);
+    close(session->priv->from_child_output);
     /* Drop our reference on the child process, it has terminated */
     g_object_unref (session);
 }