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:
Pan Wei 2024-08-30 14:19:27 +08:00 committed by GitHub
commit 6de0809105
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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,