From fb3bc9543450369f5020da27f2b6602a5c852494 Mon Sep 17 00:00:00 2001 From: fadhil riyanto Date: Tue, 8 Oct 2024 13:18:05 +0700 Subject: fix fdleak Signed-off-by: fadhil riyanto --- main2.c | 2 ++ 1 file changed, 2 insertions(+) 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); } } -- cgit v1.2.3