client: free the fifo buffer

This patch fixes a memory leak: the fifo_buffer object was not freed
when the client connection was closed.
This commit is contained in:
Max Kellermann 2009-04-17 11:37:27 +02:00
parent 9db7c13ef5
commit c9c0415d65
1 changed files with 2 additions and 0 deletions

View File

@ -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);