fix some memory leaks
This commit is contained in:
parent
d3c5320b1f
commit
7ed580d93b
|
@ -833,6 +833,7 @@ static void removeMeterFromMetricIndex(STabObj *pMetric, STabObj *pMeter) {
|
|||
}
|
||||
}
|
||||
|
||||
tSkipListDestroyKey(&key);
|
||||
if (num != 0) {
|
||||
free(pRes);
|
||||
}
|
||||
|
|
|
@ -3436,9 +3436,18 @@ void pointInterpSupporterSetData(SQInfo *pQInfo, SPointInterpoSupporter *pPointI
|
|||
if (pQuery->interpoType == TSDB_INTERPO_SET_VALUE) {
|
||||
for (int32_t i = 0; i < pQuery->numOfOutputCols; ++i) {
|
||||
SQLFunctionCtx *pCtx = &pRuntimeEnv->pCtx[i];
|
||||
|
||||
// only the function of interp needs the corresponding information
|
||||
if (pCtx->functionId != TSDB_FUNC_INTERP) {
|
||||
continue;
|
||||
}
|
||||
|
||||
pCtx->numOfParams = 4;
|
||||
|
||||
SInterpInfo * pInterpInfo = (SInterpInfo *)pRuntimeEnv->pCtx[i].aOutputBuf;
|
||||
|
||||
pInterpInfo->pInterpDetail = calloc(1, sizeof(SInterpInfoDetail));
|
||||
|
||||
SInterpInfoDetail *pInterpDetail = pInterpInfo->pInterpDetail;
|
||||
|
||||
// for primary timestamp column, set the flag
|
||||
|
|
Loading…
Reference in New Issue