fix(query): fix memory leak.
This commit is contained in:
parent
7bf9ca8e82
commit
6470cfc26e
|
@ -5677,7 +5677,11 @@ int32_t startDurationForGroupTableMergeScan(SOperatorInfo* pOperator) {
|
|||
param->pOperator = pOperator;
|
||||
|
||||
SSortSource* ps = taosMemoryCalloc(1, sizeof(SSortSource));
|
||||
QUERY_CHECK_NULL(ps, code, lino, _end, terrno);
|
||||
if (ps == NULL) {
|
||||
taosMemoryFree(param);
|
||||
QUERY_CHECK_NULL(ps, code, lino, _end, terrno);
|
||||
}
|
||||
|
||||
ps->param = param;
|
||||
ps->onlyRef = false;
|
||||
code = tsortAddSource(pInfo->pSortHandle, ps);
|
||||
|
|
|
@ -369,7 +369,6 @@ int32_t doOpenSortOperator(SOperatorInfo* pOperator) {
|
|||
return terrno;
|
||||
}
|
||||
|
||||
qInfo("---alloc:%p", pSource);
|
||||
pSource->param = pOperator->pDownstream[0];
|
||||
pSource->onlyRef = true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue