fix mem leak

This commit is contained in:
Ganlin Zhao 2023-01-05 09:13:57 +08:00
parent 4a3c892472
commit ffd901fa6f
1 changed files with 1 additions and 0 deletions

View File

@ -1649,6 +1649,7 @@ int32_t percentileFunction(SqlFunctionCtx* pCtx) {
numOfElems += 1;
int32_t code = tMemBucketPut(pInfo->pMemBucket, data, 1);
if (code != TSDB_CODE_SUCCESS) {
tMemBucketDestroy(pInfo->pMemBucket);
return code;
}
}