fix: add a null ptr check.
This commit is contained in:
parent
ff615a066c
commit
0f0060f8c3
|
@ -778,7 +778,9 @@ static void *taosHashReleaseNode(SHashObj *pHashObj, void *p, int *slot) {
|
|||
} else {
|
||||
pe->next = pOld->next;
|
||||
SHashNode* x = pe->next;
|
||||
ASSERT(x->next != x);
|
||||
if (x != NULL) {
|
||||
ASSERT(x->next != x);
|
||||
}
|
||||
}
|
||||
|
||||
pe->num--;
|
||||
|
|
Loading…
Reference in New Issue