From c9c0415d65dedf13eac09abbbb86dfe17bbc8570 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 17 Apr 2009 11:37:27 +0200 Subject: [PATCH] client: free the fifo buffer This patch fixes a memory leak: the fifo_buffer object was not freed when the client connection was closed. --- src/client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.c b/src/client.c index 3c5ec5660..b8fe3d44c 100644 --- a/src/client.c +++ b/src/client.c @@ -246,6 +246,8 @@ static void client_close(struct client *client) g_queue_foreach(client->deferred_send, deferred_buffer_free, NULL); g_queue_free(client->deferred_send); + fifo_buffer_free(client->input); + g_log(G_LOG_DOMAIN, LOG_LEVEL_SECURE, "[%u] closed", client->num); g_free(client);