fix:[TD-31792] fix memory leak when error occurs in scalarGenerateSetFromList.

This commit is contained in:
Jing Sima 2024-08-29 14:40:36 +08:00
parent e48bc2055f
commit b8f56aa1b1
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ int32_t scalarGenerateSetFromList(void **data, void *pNode, uint32_t type) {
SListCell *cell = nodeList->pNodeList->pHead;
SScalarParam out = {.columnData = taosMemoryCalloc(1, sizeof(SColumnInfoData))};
if (out.columnData == NULL) {
SCL_ERR_RET(TSDB_CODE_OUT_OF_MEMORY);
SCL_ERR_JRET(TSDB_CODE_OUT_OF_MEMORY);
}
int32_t len = 0;
void *buf = NULL;