fix(query): fix memory leak in histogram param validation

TD-17598
This commit is contained in:
Ganlin Zhao 2022-07-20 14:42:03 +08:00
parent a2dd6f0ce5
commit 4dbb2debc0
1 changed files with 1 additions and 0 deletions

View File

@ -2750,6 +2750,7 @@ static bool getHistogramBinDesc(SHistoFuncBin** bins, int32_t* binNum, char* bin
(*bins)[i].count = 0; (*bins)[i].count = 0;
} }
cJSON_Delete(binDesc);
taosMemoryFree(intervals); taosMemoryFree(intervals);
return true; return true;
} }