From: Jan Kiszka Date: Thu, 29 Apr 2010 16:24:50 +0000 (+0200) Subject: block: Release allocated options after bdrv_open X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d748768c09b1f93bea90f660ab0b4063d5e9d88d;p=qemu.git 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 Signed-off-by: Kevin Wolf --- 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; }