Skip to contentSkip to conversation

block: Release allocated options after bdrv_open

PATCH Applied Jan Kiszka 2 participants 2 messages Apr 29, 2010 – Apr 30, 2010

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

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.

---
 block.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
block.c +1 -0
index 7974215..f228d8d 100644
@@ -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;
         }
Applied
#1 lore raw

Am 29.04.2010 18:24, schrieb Jan Kiszka:

Quoted 4 lines

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

Thanks, applied to the block branch.

Kevin