fix mem leak
This commit is contained in:
parent
2fbede75a3
commit
68d84a1c37
|
@ -121,9 +121,9 @@ void tsortClearOrderdSource(SArray* pOrderedSource) {
|
|||
if ((*pSource)->param && !(*pSource)->onlyRef) {
|
||||
taosMemoryFree((*pSource)->param);
|
||||
}
|
||||
if (pSource->src.pBlock) {
|
||||
blockDataDestroy(pSource->src.pBlock);
|
||||
pSource->src.pBlock = NULL;
|
||||
if ((*pSource)->src.pBlock) {
|
||||
blockDataDestroy((*pSource)->src.pBlock);
|
||||
(*pSource)->src.pBlock = NULL;
|
||||
}
|
||||
taosMemoryFreeClear(*pSource);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue