summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2010-04-29 18:24:50 +0200
committerKevin Wolf <kwolf@redhat.com>2010-05-03 10:07:32 +0200
commit2f6b34515870ee3e92810343fcdc14edcc02e5d7 (patch)
treea3842944f1dde186f721556f7f702576fd6dc911
parentf49c572b1162060a2bf46b1e7f087290b37d9509 (diff)
downloadqemu-2f6b34515870ee3e92810343fcdc14edcc02e5d7.tar.gz
qemu-2f6b34515870ee3e92810343fcdc14edcc02e5d7.tar.bz2
qemu-2f6b34515870ee3e92810343fcdc14edcc02e5d7.zip
block: Release allocated options after bdrv_open
They aren't used afterwards nor supposed to be stored by a bdrv_create handler. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r--block.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block.c b/block.c
index f463ec477a..48305b7d7c 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;
}