[TD-5534]<fix>:fix the coverity high risk of client

This commit is contained in:
markswang 2021-07-28 12:12:33 +08:00
parent 211c079b07
commit a7dc581f23
1 changed files with 1 additions and 1 deletions

View File

@ -2476,7 +2476,7 @@ int32_t tscHandleMasterSTableQuery(SSqlObj *pSql) {
pState->states = calloc(pState->numOfSub, sizeof(*pState->states));
if (pState->states == NULL) {
pRes->code = TSDB_CODE_TSC_OUT_OF_MEMORY;
tscDestroyGlob alMergerEnv(pMemoryBuf, pDesc,pState->numOfSub);
tscDestroyGlobalMergerEnv(pMemoryBuf, pDesc,pState->numOfSub);
tscAsyncResultOnError(pSql);
return ret;