提交 b5dbc843 编写于 作者: dengyihao's avatar dengyihao

fix mem leak

上级 68d84a1c
......@@ -121,10 +121,12 @@ void tsortClearOrderdSource(SArray* pOrderedSource) {
if ((*pSource)->param && !(*pSource)->onlyRef) {
taosMemoryFree((*pSource)->param);
}
if ((*pSource)->src.pBlock) {
if (!(*pSource)->onlyRef && (*pSource)->src.pBlock) {
blockDataDestroy((*pSource)->src.pBlock);
(*pSource)->src.pBlock = NULL;
}
taosMemoryFreeClear(*pSource);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册