From 3710dbe2e024285b0b735248f019e7699a7162ed Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 7 Dec 2022 16:57:45 +0800 Subject: [PATCH] fix mem leak --- source/libs/transport/src/transSvr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/libs/transport/src/transSvr.c b/source/libs/transport/src/transSvr.c index 73c6dc4011..2b1f68d5f6 100644 --- a/source/libs/transport/src/transSvr.c +++ b/source/libs/transport/src/transSvr.c @@ -1195,6 +1195,8 @@ void transCloseServer(void* arg) { sendQuitToWorkThrd(srv->pThreadObj[i]); destroyWorkThrd(srv->pThreadObj[i]); } + } else { + uv_loop_close(srv->loop); } taosMemoryFree(srv->pThreadObj); -- GitLab