From 79e447dad1e1ae888d42524ef3d8fc9a7b2033a3 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Fri, 27 May 2022 16:13:42 +0800 Subject: [PATCH] fix: avoid mem leak when taosd quit --- source/libs/transport/inc/transComm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/source/libs/transport/inc/transComm.h b/source/libs/transport/inc/transComm.h index f8b3893782..5ba6c4029e 100644 --- a/source/libs/transport/inc/transComm.h +++ b/source/libs/transport/inc/transComm.h @@ -223,6 +223,7 @@ int transSendAsync(SAsyncPool* pool, queue* mq); uv_async_t* async = &(pool->asyncs[i]); \ SAsyncItem* item = async->data; \ while (!QUEUE_IS_EMPTY(&item->qmsg)) { \ + tTrace("destroy msg in async pool "); \ queue* h = QUEUE_HEAD(&item->qmsg); \ QUEUE_REMOVE(h); \ msgType* msg = QUEUE_DATA(h, msgType, q); \ -- GitLab