Comment 2 for bug 1190344

Revision history for this message
Robert Ancell (robert-ancell) wrote : Re: lightdm is leaking FDs -fix

There is a bug here:

+++ b/src/greeter.c
@@ -937,6 +937,8 @@ greeter_finalize (GObject *object)
     if (self->priv->from_greeter_channel)
         g_io_channel_unref (self->priv->from_greeter_channel);

+ close(g_io_channel_unix_get_fd(self->priv->to_greeter_channel));
+ close(g_io_channel_unix_get_fd(self->priv->from_greeter_channel));

You access self->priv->from_greeter_channel after unreffing it...