fix(query): memory leak with pPageIdList on sort
This commit is contained in:
parent
c75fa4f7d2
commit
cab48ced20
|
@ -116,9 +116,12 @@ void tsortClearOrderdSource(SArray *pOrderedSource) {
|
|||
if (NULL == *pSource) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// release pageIdList
|
||||
if ((*pSource)->pageIdList) {
|
||||
taosArrayDestroy((*pSource)->pageIdList);
|
||||
}
|
||||
if ((*pSource)->param && !(*pSource)->onlyRef) {
|
||||
taosMemoryFree((*pSource)->param);
|
||||
taosMemoryFree((*pSource)->param);
|
||||
}
|
||||
taosMemoryFreeClear(*pSource);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue