diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-05 22:03:02 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-05 22:03:02 +0200 |
commit | 6c70174b75174e3dff180fa637b7e6ff5d97ed82 (patch) | |
tree | 6de6f33d8f37453b41884989da29d320942fd7d1 | |
parent | command: dedupe the code (diff) | |
download | cimple-6c70174b75174e3dff180fa637b7e6ff5d97ed82.tar.gz cimple-6c70174b75174e3dff180fa637b7e6ff5d97ed82.zip |
tcp_server: close client connections
I kinda forgot that I'm supposed to clean up client connections, and
they immediately blew up in my face.
-rw-r--r-- | src/tcp_server.c | 1 |
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); } |