summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xdmcp-server.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xdmcp-server.c b/src/xdmcp-server.c
index d12b0359..d1cea2f3 100644
--- a/src/xdmcp-server.c
+++ b/src/xdmcp-server.c
@@ -625,7 +625,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)
{