qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 18/18] block: Release allocated options after bdrv_o


From: Kevin Wolf
Subject: [Qemu-devel] [PATCH 18/18] block: Release allocated options after bdrv_open
Date: Fri, 30 Apr 2010 16:00:40 +0200

From: Jan Kiszka <address@hidden>

They aren't used afterwards nor supposed to be stored by a bdrv_create
handler.

Signed-off-by: Jan Kiszka <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
 block.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/block.c b/block.c
index f463ec4..48305b7 100644
--- a/block.c
+++ b/block.c
@@ -540,6 +540,7 @@ int bdrv_open(BlockDriverState *bs, const char *filename, 
int flags,
         }
 
         ret = bdrv_create(bdrv_qcow2, tmp_filename, options);
+        free_option_parameters(options);
         if (ret < 0) {
             return ret;
         }
-- 
1.6.6.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]