From 685d06d8aa62af4b5a262bb68c2eeae8e01680d3 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Tue, 21 Jan 2025 11:44:49 +0800 Subject: [PATCH] fix:[TD-33556] tmq close elegantly to avoid invalid read in TD-32585 --- source/client/src/clientTmq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/client/src/clientTmq.c b/source/client/src/clientTmq.c index e137bd3ee3..4d24548a31 100644 --- a/source/client/src/clientTmq.c +++ b/source/client/src/clientTmq.c @@ -1615,6 +1615,7 @@ static void tmqMgmtInit(void) { if (taosThreadMutexInit(&tmqMgmt.lock, NULL) != 0){ goto END; } + return; END: tmqInitRes = terrno;