fix: avoid mem leak when taosd quit

This commit is contained in:
yihaoDeng 2022-05-27 16:13:42 +08:00
parent 9f0315a98f
commit 79e447dad1
1 changed files with 1 additions and 0 deletions

View File

@ -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); \