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:
@@ -246,6 +246,8 @@ static void client_close(struct client *client)
|
|||||||
g_queue_foreach(client->deferred_send, deferred_buffer_free, NULL);
|
g_queue_foreach(client->deferred_send, deferred_buffer_free, NULL);
|
||||||
g_queue_free(client->deferred_send);
|
g_queue_free(client->deferred_send);
|
||||||
|
|
||||||
|
fifo_buffer_free(client->input);
|
||||||
|
|
||||||
g_log(G_LOG_DOMAIN, LOG_LEVEL_SECURE,
|
g_log(G_LOG_DOMAIN, LOG_LEVEL_SECURE,
|
||||||
"[%u] closed", client->num);
|
"[%u] closed", client->num);
|
||||||
g_free(client);
|
g_free(client);
|
||||||
|
Reference in New Issue
Block a user