fix mem leak
This commit is contained in:
parent
4a3c892472
commit
ffd901fa6f
|
@ -1649,6 +1649,7 @@ int32_t percentileFunction(SqlFunctionCtx* pCtx) {
|
||||||
numOfElems += 1;
|
numOfElems += 1;
|
||||||
int32_t code = tMemBucketPut(pInfo->pMemBucket, data, 1);
|
int32_t code = tMemBucketPut(pInfo->pMemBucket, data, 1);
|
||||||
if (code != TSDB_CODE_SUCCESS) {
|
if (code != TSDB_CODE_SUCCESS) {
|
||||||
|
tMemBucketDestroy(pInfo->pMemBucket);
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue