未验证 提交 ec7e3665 编写于 作者: P plum-lihui 提交者: GitHub

Merge pull request #1332 from sangshuduo/fix-deref-after-pNew-free

fix the issue that deref pNew pointer after free
......@@ -792,8 +792,8 @@ void vnodeUpdateMeter(void *param, void *tmrId) {
vnodeClearMeterState(pObj, TSDB_METER_STATE_UPDATING);
free(pNew->schema);
free(pNew);
return;
}
dTrace("vid:%d sid:%d meterId:%s, there are data in cache, commit first, update later",
pNew->vnode, pNew->sid, pNew->meterId);
vnodeClearMeterState(pObj, TSDB_METER_STATE_UPDATING);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册