fix mem leak

This commit is contained in:
yihaoDeng 2023-01-03 17:49:07 +08:00
parent 2fbede75a3
commit 68d84a1c37
1 changed files with 3 additions and 3 deletions

View File

@ -121,9 +121,9 @@ void tsortClearOrderdSource(SArray* pOrderedSource) {
if ((*pSource)->param && !(*pSource)->onlyRef) { if ((*pSource)->param && !(*pSource)->onlyRef) {
taosMemoryFree((*pSource)->param); taosMemoryFree((*pSource)->param);
} }
if (pSource->src.pBlock) { if ((*pSource)->src.pBlock) {
blockDataDestroy(pSource->src.pBlock); blockDataDestroy((*pSource)->src.pBlock);
pSource->src.pBlock = NULL; (*pSource)->src.pBlock = NULL;
} }
taosMemoryFreeClear(*pSource); taosMemoryFreeClear(*pSource);
} }