fix:cleanup scheduler timer & remove destroy global variables to avoid heap use after free

This commit is contained in:
wangmm0220 2024-07-10 18:58:06 +08:00
parent 020900e359
commit 1e156c9ce1
2 changed files with 1 additions and 2 deletions

View File

@ -84,8 +84,6 @@ void taos_cleanup(void) {
taosConvDestroy();
tmqMgmtClose();
taosHashCleanup(appInfo.pInstMap);
taosHashCleanup(appInfo.pInstMapByClusterId);
tscInfo("all local resources released");
taosCleanupCfg();

View File

@ -201,6 +201,7 @@ void schedulerDestroy(void) {
}
SCH_UNLOCK(SCH_WRITE, &schMgmt.hbLock);
taosTmrCleanUp(schMgmt.timer);
qWorkerDestroy(&schMgmt.queryMgmt);
schMgmt.queryMgmt = NULL;
}