Merge pull request #27159 from taosdata/fix/TD-31378-3.0
fix: null pointer check when clearing tsdb reader
This commit is contained in:
commit
0d4cb0e26e
|
@ -4608,11 +4608,13 @@ static void freeSchemaFunc(void* param) {
|
|||
}
|
||||
|
||||
static void clearSharedPtr(STsdbReader* p) {
|
||||
p->status.pTableMap = NULL;
|
||||
p->status.uidList.tableUidList = NULL;
|
||||
p->info.pSchema = NULL;
|
||||
p->pReadSnap = NULL;
|
||||
p->pSchemaMap = NULL;
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue