diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2015-10-30 12:17:52 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2015-10-30 12:17:52 +1300 |
commit | 2e9405bca6dc80ac0c8df75e7e56324d05785a2c (patch) | |
tree | 4100f35947e2d465b02afb97b6d2c6b698b81e20 | |
parent | 73f84774d919e8499070b07ca311118ef050d265 (diff) | |
download | lightdm-git-2e9405bca6dc80ac0c8df75e7e56324d05785a2c.tar.gz |
Fix memory leak in XDMCP logging code
-rw-r--r-- | src/xdmcp-server.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xdmcp-server.c b/src/xdmcp-server.c index dfa84a08..baf1d361 100644 --- a/src/xdmcp-server.c +++ b/src/xdmcp-server.c @@ -626,7 +626,11 @@ read_cb (GSocket *socket, GIOCondition condition, XDMCPServer *server) packet = xdmcp_packet_decode ((guint8 *)data, n_read); if (packet) { - g_debug ("Got %s", xdmcp_packet_tostring (packet)); + gchar *packet_string; + + packet_string = xdmcp_packet_tostring (packet); + g_debug ("Got %s", packet_string); + g_free (packet_string); switch (packet->opcode) { |