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) {
|
if (num != 0) {
|
||||||
free(pRes);
|
free(pRes);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3436,9 +3436,18 @@ void pointInterpSupporterSetData(SQInfo *pQInfo, SPointInterpoSupporter *pPointI
|
||||||
if (pQuery->interpoType == TSDB_INTERPO_SET_VALUE) {
|
if (pQuery->interpoType == TSDB_INTERPO_SET_VALUE) {
|
||||||
for (int32_t i = 0; i < pQuery->numOfOutputCols; ++i) {
|
for (int32_t i = 0; i < pQuery->numOfOutputCols; ++i) {
|
||||||
SQLFunctionCtx *pCtx = &pRuntimeEnv->pCtx[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;
|
SInterpInfo * pInterpInfo = (SInterpInfo *)pRuntimeEnv->pCtx[i].aOutputBuf;
|
||||||
|
|
||||||
pInterpInfo->pInterpDetail = calloc(1, sizeof(SInterpInfoDetail));
|
pInterpInfo->pInterpDetail = calloc(1, sizeof(SInterpInfoDetail));
|
||||||
|
|
||||||
SInterpInfoDetail *pInterpDetail = pInterpInfo->pInterpDetail;
|
SInterpInfoDetail *pInterpDetail = pInterpInfo->pInterpDetail;
|
||||||
|
|
||||||
// for primary timestamp column, set the flag
|
// for primary timestamp column, set the flag
|
||||||
|
|
Loading…
Reference in New Issue