aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/tcp_server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tcp_server.c b/src/tcp_server.c
index 2681ec0..ca85ff2 100644
--- a/src/tcp_server.c
+++ b/src/tcp_server.c
@@ -89,6 +89,7 @@ static void client_destroy(struct client *client)
SIMPLEQ_REMOVE(&client->server->client_queue, client, client, entries);
pthread_errno_if(pthread_join(client->thread, NULL), "pthread_join");
net_close(client->cleanup_fd);
+ net_close(client->conn_fd);
free(client);
}