Commit c9c0415d authored by Max Kellermann's avatar Max Kellermann

client: free the fifo buffer

This patch fixes a memory leak: the fifo_buffer object was not freed when the client connection was closed.
parent 9db7c13e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment