Merge pull request #27159 from taosdata/fix/TD-31378-3.0

fix: null pointer check when clearing tsdb reader
This commit is contained in:
Hongze Cheng 2024-08-12 18:48:43 +08:00 committed by GitHub
commit 0d4cb0e26e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 5 deletions

View File

@ -4608,11 +4608,13 @@ static void freeSchemaFunc(void* param) {
}
static void clearSharedPtr(STsdbReader* p) {
if (p) {
p->status.pTableMap = NULL;
p->status.uidList.tableUidList = NULL;
p->info.pSchema = NULL;
p->pReadSnap = NULL;
p->pSchemaMap = NULL;
}
}
static int32_t setSharedPtr(STsdbReader* pDst, const STsdbReader* pSrc) {