Merge pull request #27542 from taosdata/fix/3.0/TD-31792
fix:[TD-31792] fix memory leak when error occurs in scalarGenerateSetFromList.
This commit is contained in:
commit
51570368b5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue