fix mem leak
This commit is contained in:
parent
68d84a1c37
commit
b5dbc8439f
|
@ -121,10 +121,12 @@ 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)->onlyRef && (*pSource)->src.pBlock) {
|
||||||
blockDataDestroy((*pSource)->src.pBlock);
|
blockDataDestroy((*pSource)->src.pBlock);
|
||||||
(*pSource)->src.pBlock = NULL;
|
(*pSource)->src.pBlock = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
taosMemoryFreeClear(*pSource);
|
taosMemoryFreeClear(*pSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue