fix bugs of releasing qhandle
This commit is contained in:
parent
59bb8b3c90
commit
bde973221f
|
@ -215,7 +215,10 @@ void vnodeCloseShellVnode(int vnode) {
|
|||
if (shellList[vnode] == NULL) return;
|
||||
|
||||
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));
|
||||
|
|
Loading…
Reference in New Issue