Skip to contentSkip to conversation

vpc: Don't leak opts in vpc_open()

PATCH In review Kevin Wolf 2 participants 2 messages Oct 17, 2018 Block layer

lore
Share & tools
lore

Kevin Wolf

author
#0 lore raw

PATCH 1/1 vpc: Don't leak opts in vpc_open()

---
 block/vpc.c | 2 ++
 1 file changed, 2 insertions(+)
block/vpc.c +2 -0
index bf294abfa7..eace2ba484 100644
@@ -454,10 +454,12 @@ static int vpc_open(BlockDriverState *bs, QDict *options, int flags,
     }
 
     qemu_co_mutex_init(&s->lock);
+    qemu_opts_del(opts);
 
     return 0;
 
 fail:
+    qemu_opts_del(opts);
     qemu_vfree(s->pagetable);
 #ifdef CACHE
     g_free(s->pageentry_u8);
Signature · 1 line
2.19.1