fix(query): memory leak with pPageIdList on sort

This commit is contained in:
Alex Duan 2022-11-28 21:40:46 +08:00
parent c75fa4f7d2
commit cab48ced20
1 changed files with 5 additions and 2 deletions

View File

@ -116,9 +116,12 @@ void tsortClearOrderdSource(SArray *pOrderedSource) {
if (NULL == *pSource) { if (NULL == *pSource) {
continue; continue;
} }
// release pageIdList
if ((*pSource)->pageIdList) {
taosArrayDestroy((*pSource)->pageIdList);
}
if ((*pSource)->param && !(*pSource)->onlyRef) { if ((*pSource)->param && !(*pSource)->onlyRef) {
taosMemoryFree((*pSource)->param); taosMemoryFree((*pSource)->param);
} }
taosMemoryFreeClear(*pSource); taosMemoryFreeClear(*pSource);
} }