summaryrefslogtreecommitdiff
path: root/main2.c
diff options
context:
space:
mode:
authorfadhil riyanto <me@fadev.org>2024-10-08 13:18:05 +0700
committerfadhil riyanto <me@fadev.org>2024-10-08 13:18:05 +0700
commitfb3bc9543450369f5020da27f2b6602a5c852494 (patch)
tree14e9daf4a0a15e5dfb63c2b05ae3053b2a53cc1c /main2.c
parent1a59e5a4858971b5ceb2c1f7f831e3f119826015 (diff)
fix fdleakdev
Signed-off-by: fadhil riyanto <me@fadev.org>
Diffstat (limited to 'main2.c')
-rw-r--r--main2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main2.c b/main2.c
index e6582f5..5d3ba02 100644
--- a/main2.c
+++ b/main2.c
@@ -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);
}
}