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

Merge pull request #1156 from taosdata/beta/v1.6.5.3

fix bugs of releasing qhandle
...@@ -215,7 +215,10 @@ void vnodeCloseShellVnode(int vnode) { ...@@ -215,7 +215,10 @@ void vnodeCloseShellVnode(int vnode) {
if (shellList[vnode] == NULL) return; if (shellList[vnode] == NULL) return;
for (int i = 0; i < vnodeList[vnode].cfg.maxSessions; ++i) { for (int i = 0; i < vnodeList[vnode].cfg.maxSessions; ++i) {
vnodeDecRefCount(shellList[vnode][i].qhandle); void* qhandle = shellList[vnode][i].qhandle;
if (qhandle != NULL) {
vnodeDecRefCount(qhandle);
}
} }
int32_t* v = malloc(sizeof(int32_t)); int32_t* v = malloc(sizeof(int32_t));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册