Merge pull request #28921 from taosdata/fix/TD-33008-main

fix(query)[TD-33008]. fix error handling in tsdbCacheRead
This commit is contained in:
Shengliang Guan 2024-11-26 11:56:41 +08:00 committed by GitHub
commit 135131fb3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -346,7 +346,8 @@ int32_t tsdbCacherowsReaderOpen(void* pVnode, int32_t type, void* pTableIdList,
p->rowKey.pks[0].pData = taosMemoryCalloc(1, pPkCol->bytes); p->rowKey.pks[0].pData = taosMemoryCalloc(1, pPkCol->bytes);
if (p->rowKey.pks[0].pData == NULL) { if (p->rowKey.pks[0].pData == NULL) {
taosMemoryFreeClear(p); taosMemoryFreeClear(p);
TSDB_CHECK_NULL(p->rowKey.pks[0].pData, code, lino, _end, terrno); code = terrno;
TSDB_CHECK_CODE(code, lino, _end);
} }
} }