Fix memory leak.
[jelmer/ctrlproxy.git] / src / motd.c
index 2084c4580f4cc43917dcb1156da67d80b4f627a9..3f388f9fe7247a649b4587382e952ca28847cd99 100644 (file)
@@ -56,7 +56,7 @@ char ** get_motd_lines(struct client *c)
                lines[nrlines] = NULL;
        }
 
-       g_io_channel_close(fd);
+       g_io_channel_unref(fd);
 
        return lines;
 }