diff mbox

[2/4] blkverify: Fix leak of opts in blkverify_open

Message ID 1409119356-22742-3-git-send-email-famz@redhat.com
State New
Headers show

Commit Message

Fam Zheng Aug. 27, 2014, 6:02 a.m. UTC
Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/blkverify.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Benoît Canet Aug. 27, 2014, 2:41 p.m. UTC | #1
The Wednesday 27 Aug 2014 à 14:02:34 (+0800), Fam Zheng wrote :
> Signed-off-by: Fam Zheng <famz@redhat.com>
> ---
>  block/blkverify.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/block/blkverify.c b/block/blkverify.c
> index 7c78ca4..163064c 100644
> --- a/block/blkverify.c
> +++ b/block/blkverify.c
> @@ -158,6 +158,7 @@ static int blkverify_open(BlockDriverState *bs, QDict *options, int flags,
>  
>      ret = 0;
>  fail:
> +    qemu_opts_del(opts);
>      return ret;
>  }
>  
> -- 
> 2.1.0
> 
> 
Reviewed-by: Benoît Canet <benoit.canet@nodalink.com>
diff mbox

Patch

diff --git a/block/blkverify.c b/block/blkverify.c
index 7c78ca4..163064c 100644
--- a/block/blkverify.c
+++ b/block/blkverify.c
@@ -158,6 +158,7 @@  static int blkverify_open(BlockDriverState *bs, QDict *options, int flags,
 
     ret = 0;
 fail:
+    qemu_opts_del(opts);
     return ret;
 }