提交 8bdf3a05 编写于 作者: H Haojun Liao

[td-225] fix memory leaks

上级 b0807644
...@@ -409,6 +409,7 @@ int32_t taosHashCondTraverse(SHashObj *pHashObj, bool (*fp)(void *, void *), voi ...@@ -409,6 +409,7 @@ int32_t taosHashCondTraverse(SHashObj *pHashObj, bool (*fp)(void *, void *), voi
// not qualified, remove it // not qualified, remove it
if (fp && (!fp(param, pNode->data))) { if (fp && (!fp(param, pNode->data))) {
doPopFromEntryList(pEntry, pNode); doPopFromEntryList(pEntry, pNode);
FREE_HASH_NODE(pNode);
} }
pNode = pNext; pNode = pNext;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册