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) {
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue