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

fix: add a null ptr check.

上级 ff615a06
......@@ -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--;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册