fix: null pointer check when clearing tsdb reader
This commit is contained in:
parent
4a98782a38
commit
7e57747bee
|
@ -4608,12 +4608,14 @@ 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) {
|
||||
pDst->status.pTableMap = pSrc->status.pTableMap;
|
||||
|
|
Loading…
Reference in New Issue