diff --git a/source/util/src/thash.c b/source/util/src/thash.c index 8ae0a33f0f..89fc446da9 100644 --- a/source/util/src/thash.c +++ b/source/util/src/thash.c @@ -774,8 +774,11 @@ static void *taosHashReleaseNode(SHashObj *pHashObj, void *p, int *slot) { if (pOld->refCount <=0) { if (prevNode) { prevNode->next = pOld->next; + ASSERT(prevNode->next != prevNode); } else { pe->next = pOld->next; + SHashNode* x = pe->next; + ASSERT(x->next != x); } pe->num--;