Merge pull request #2071 from taosdata/hotfix/sangshuduo/fix-resource-leak-in-dnodeVWrite.c
fix resource leak in dnodeVWrite.c
This commit is contained in:
commit
2ad443a172
|
@ -129,7 +129,10 @@ void *dnodeAllocateVnodeWqueue(void *pVnode) {
|
|||
|
||||
if (pWorker->qset == NULL) {
|
||||
pWorker->qset = taosOpenQset();
|
||||
if (pWorker->qset == NULL) return NULL;
|
||||
if (pWorker->qset == NULL) {
|
||||
taosCloseQueue(queue);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
taosAddIntoQset(pWorker->qset, queue, pVnode);
|
||||
pWorker->qall = taosAllocateQall();
|
||||
|
|
Loading…
Reference in New Issue