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) {
|
static void clearSharedPtr(STsdbReader* p) {
|
||||||
p->status.pTableMap = NULL;
|
if (p) {
|
||||||
p->status.uidList.tableUidList = NULL;
|
p->status.pTableMap = NULL;
|
||||||
p->info.pSchema = NULL;
|
p->status.uidList.tableUidList = NULL;
|
||||||
p->pReadSnap = NULL;
|
p->info.pSchema = NULL;
|
||||||
p->pSchemaMap = NULL;
|
p->pReadSnap = NULL;
|
||||||
|
p->pSchemaMap = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int32_t setSharedPtr(STsdbReader* pDst, const STsdbReader* pSrc) {
|
static int32_t setSharedPtr(STsdbReader* pDst, const STsdbReader* pSrc) {
|
||||||
|
|
Loading…
Reference in New Issue