diff options
author | Kevin Wolf <kwolf@redhat.com> | 2018-10-17 15:33:14 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-11-05 15:09:54 +0100 |
commit | c317b646d752e97f64e97ba2145d8dfc55589c92 (patch) | |
tree | 97d2c18c821b62f263ffa7263d9ed7eef1ee275a /block | |
parent | d98205c58667ca6750658834e8466ac41a3e572e (diff) |
vpc: Don't leak opts in vpc_open()
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/vpc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/vpc.c b/block/vpc.c index 984187cadd..80c5b2b197 100644 --- a/block/vpc.c +++ b/block/vpc.c @@ -456,10 +456,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); |