diff options
author | fadhil riyanto <me@fadev.org> | 2024-10-08 13:18:05 +0700 |
---|---|---|
committer | fadhil riyanto <me@fadev.org> | 2024-10-08 13:18:05 +0700 |
commit | fb3bc9543450369f5020da27f2b6602a5c852494 (patch) | |
tree | 14e9daf4a0a15e5dfb63c2b05ae3053b2a53cc1c | |
parent | 1a59e5a4858971b5ceb2c1f7f831e3f119826015 (diff) |
fix fdleakdev
Signed-off-by: fadhil riyanto <me@fadev.org>
-rw-r--r-- | main2.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1081,6 +1081,8 @@ static void* start_private_conn_no_epl(void *priv_conn_detailsptr) int ret = start_unpack_packet_no_epl(current_fd, NULL, &socks5_session); if (ret == 0) { printf("connection closed\n"); + close(current_fd); + uninst_th_for_fd(srv_ctx->th_pool, current_fd); } } |