提交 cab48ced 编写于 作者: A Alex Duan

fix(query): memory leak with pPageIdList on sort

上级 c75fa4f7
...@@ -116,9 +116,12 @@ void tsortClearOrderdSource(SArray *pOrderedSource) { ...@@ -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);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册