From a006c4634c1cb7cd7e307af30dbd15de61d59035 Mon Sep 17 00:00:00 2001 From: dmchen Date: Mon, 23 Oct 2023 12:47:49 +0000 Subject: [PATCH] destroy registry --- source/libs/monitor/src/monMain.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/libs/monitor/src/monMain.c b/source/libs/monitor/src/monMain.c index 93abda1281..20bd064d69 100644 --- a/source/libs/monitor/src/monMain.c +++ b/source/libs/monitor/src/monMain.c @@ -125,6 +125,9 @@ void monCleanup() { tFreeSMonQmInfo(&tsMonitor.qmInfo); tFreeSMonBmInfo(&tsMonitor.bmInfo); taosThreadMutexDestroy(&tsMonitor.lock); + + taos_collector_registry_destroy(TAOS_COLLECTOR_REGISTRY_DEFAULT); + TAOS_COLLECTOR_REGISTRY_DEFAULT = NULL; } static void monCleanupMonitorInfo(SMonInfo *pMonitor) {