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) {
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue