fix: fix sched handler memory leak issue
This commit is contained in:
parent
9cd7c54e25
commit
d5072a8f32
|
@ -68,6 +68,7 @@ void indexInit() {
|
||||||
void indexCleanup() {
|
void indexCleanup() {
|
||||||
// refacto later
|
// refacto later
|
||||||
taosCleanUpScheduler(indexQhandle);
|
taosCleanUpScheduler(indexQhandle);
|
||||||
|
taosMemoryFreeClear(indexQhandle);
|
||||||
taosCloseRef(indexRefMgt);
|
taosCloseRef(indexRefMgt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -606,6 +606,7 @@ void taosTmrCleanUp(void* handle) {
|
||||||
taosUninitTimer();
|
taosUninitTimer();
|
||||||
|
|
||||||
taosCleanUpScheduler(tmrQhandle);
|
taosCleanUpScheduler(tmrQhandle);
|
||||||
|
taosMemoryFreeClear(tmrQhandle);
|
||||||
|
|
||||||
for (int32_t i = 0; i < tListLen(wheels); i++) {
|
for (int32_t i = 0; i < tListLen(wheels); i++) {
|
||||||
time_wheel_t* wheel = wheels + i;
|
time_wheel_t* wheel = wheels + i;
|
||||||
|
|
Loading…
Reference in New Issue