fix mem leak

This commit is contained in:
yihaoDeng 2024-03-28 12:10:04 +00:00
parent ee81a43f81
commit 2ecc7c27f7
1 changed files with 4 additions and 1 deletions

View File

@ -9922,7 +9922,10 @@ static int32_t buildNormalTableBatchReq(int32_t acctId, const SCreateTableStmt*
int8_t valid = setColCompressByOption(
pScheam->type, &req.colCmpr.pColCmpr[index].alg, columnEncodeVal(pColDef->pOptions->encode),
columnCompressVal(pColDef->pOptions->compress), columnLevelVal(pColDef->pOptions->compressLevel));
if (!valid) return TSDB_CODE_TSC_ENCODE_PARAM_ERROR;
if (!valid) {
tdDestroySVCreateTbReq(&req);
return TSDB_CODE_TSC_ENCODE_PARAM_ERROR;
}
}
++index;
}