fix: fix sched handler memory leak issue

This commit is contained in:
dapan1121 2022-08-12 11:36:49 +08:00
parent 9cd7c54e25
commit d5072a8f32
2 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@ void indexInit() {
void indexCleanup() {
// refacto later
taosCleanUpScheduler(indexQhandle);
taosMemoryFreeClear(indexQhandle);
taosCloseRef(indexRefMgt);
}

View File

@ -606,6 +606,7 @@ void taosTmrCleanUp(void* handle) {
taosUninitTimer();
taosCleanUpScheduler(tmrQhandle);
taosMemoryFreeClear(tmrQhandle);
for (int32_t i = 0; i < tListLen(wheels); i++) {
time_wheel_t* wheel = wheels + i;