vpc: Don't leak opts in vpc_open()
PATCH 1/1 vpc: Don't leak opts in vpc_open()
Signed-off-by Kevin Wolf <[email protected]>
--- block/vpc.c | 2 ++ 1 file changed, 2 insertions(+)
block/vpc.c +2 -0
@@ -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
Quoted 1 line · Kevin Wolf
Signed-off-by Kevin Wolf <[email protected]>
Reviewed-by Alberto Garcia <[email protected]>
Berto