fix: add a null ptr check.

This commit is contained in:
Haojun Liao 2022-05-21 17:04:13 +08:00
parent ff615a066c
commit 0f0060f8c3
1 changed files with 3 additions and 1 deletions

View File

@ -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--;