提交 0f0060f8 编写于 作者: H Haojun Liao

fix: add a null ptr check.

上级 ff615a06
...@@ -778,8 +778,10 @@ static void *taosHashReleaseNode(SHashObj *pHashObj, void *p, int *slot) { ...@@ -778,8 +778,10 @@ static void *taosHashReleaseNode(SHashObj *pHashObj, void *p, int *slot) {
} else { } else {
pe->next = pOld->next; pe->next = pOld->next;
SHashNode* x = pe->next; SHashNode* x = pe->next;
if (x != NULL) {
ASSERT(x->next != x); ASSERT(x->next != x);
} }
}
pe->num--; pe->num--;
atomic_sub_fetch_64(&pHashObj->size, 1); atomic_sub_fetch_64(&pHashObj->size, 1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册