fix(query)[TD-31791]: fix null pointer access after memory allocation failure
This commit is contained in:
parent
c6d0831cd1
commit
9f7087ffbc
|
@ -2258,6 +2258,7 @@ static int32_t lastIterOpen(SFSLastIter *iter, STFileSet *pFileSet, STsdb *pTsdb
|
|||
int32_t code = 0;
|
||||
destroySttBlockReader(pr->pLDataIterArray, NULL);
|
||||
pr->pLDataIterArray = taosArrayInit(4, POINTER_BYTES);
|
||||
if (pr->pLDataIterArray == NULL) return terrno;
|
||||
|
||||
SMergeTreeConf conf = {
|
||||
.uid = uid,
|
||||
|
|
Loading…
Reference in New Issue