aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-17 11:37:27 +0200
committerMax Kellermann <max@duempel.org>2009-04-17 11:37:27 +0200
commitc9c0415d65dedf13eac09abbbb86dfe17bbc8570 (patch)
tree50a5b2c7e8a4ab6f725511e9926e1120be5a7e0e /src
parent9db7c13ef5b8f2e99eb92335205af377cc3acbbd (diff)
downloadmpd-c9c0415d65dedf13eac09abbbb86dfe17bbc8570.tar.gz
mpd-c9c0415d65dedf13eac09abbbb86dfe17bbc8570.tar.xz
mpd-c9c0415d65dedf13eac09abbbb86dfe17bbc8570.zip
client: free the fifo buffer
This patch fixes a memory leak: the fifo_buffer object was not freed when the client connection was closed.
Diffstat (limited to 'src')
-rw-r--r--src/client.c2
1 files changed, 2 insertions, 0 deletions
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);