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