未验证 提交 2ad443a1 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #2071 from taosdata/hotfix/sangshuduo/fix-resource-leak-in-dnodeVWrite.c

fix resource leak in dnodeVWrite.c
...@@ -129,7 +129,10 @@ void *dnodeAllocateVnodeWqueue(void *pVnode) { ...@@ -129,7 +129,10 @@ void *dnodeAllocateVnodeWqueue(void *pVnode) {
if (pWorker->qset == NULL) { if (pWorker->qset == NULL) {
pWorker->qset = taosOpenQset(); pWorker->qset = taosOpenQset();
if (pWorker->qset == NULL) return NULL; if (pWorker->qset == NULL) {
taosCloseQueue(queue);
return NULL;
}
taosAddIntoQset(pWorker->qset, queue, pVnode); taosAddIntoQset(pWorker->qset, queue, pVnode);
pWorker->qall = taosAllocateQall(); pWorker->qall = taosAllocateQall();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册