block: Release allocated options after bdrv_open
PATCH 1/1 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 <[email protected]>
--- block.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
block.c +1 -0
@@ -411,6 +411,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; }
Kevin Wolf
AppliedAm 29.04.2010 18:24, schrieb Jan Kiszka:
Quoted 4 lines
They aren't used afterwards nor supposed to be stored by a
bdrv_createhandler.Signed-off-by Jan Kiszka <[email protected]>
Thanks, applied to the block branch.
Kevin