fix:memory leak
This commit is contained in:
parent
61a19b80d7
commit
4f97d72502
|
@ -474,6 +474,8 @@ int32_t getTableList(void* metaHandle, void* pVnode, SScanPhysiNode* pScanNode,
|
||||||
|
|
||||||
int64_t stt1 = taosGetTimestampUs();
|
int64_t stt1 = taosGetTimestampUs();
|
||||||
qDebug("generate table list, cost:%ld us", stt1-stt);
|
qDebug("generate table list, cost:%ld us", stt1-stt);
|
||||||
|
}else if(!pTagCond){
|
||||||
|
vnodeGetCtbIdList(pVnode, pScanNode->suid, res);
|
||||||
}
|
}
|
||||||
} else { // Create one table group.
|
} else { // Create one table group.
|
||||||
taosArrayPush(res, &tableUid);
|
taosArrayPush(res, &tableUid);
|
||||||
|
@ -500,8 +502,6 @@ int32_t getTableList(void* metaHandle, void* pVnode, SScanPhysiNode* pScanNode,
|
||||||
}
|
}
|
||||||
colDataDestroy(pColInfoData);
|
colDataDestroy(pColInfoData);
|
||||||
taosMemoryFreeClear(pColInfoData);
|
taosMemoryFreeClear(pColInfoData);
|
||||||
}else{
|
|
||||||
vnodeGetCtbIdList(pVnode, pScanNode->suid, res);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < taosArrayGetSize(res); i++) {
|
for (int i = 0; i < taosArrayGetSize(res); i++) {
|
||||||
|
|
Loading…
Reference in New Issue