projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
327cdad
)
blkdebug: Free QemuOpts after having read the config
author
Kevin Wolf
<kwolf@redhat.com>
Wed, 30 Jun 2010 15:42:23 +0000
(17:42 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Fri, 2 Jul 2010 11:18:02 +0000
(13:18 +0200)
Forgetting to free them means that the next instance inherits all rules and
gets its own rules only additionally.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/blkdebug.c
patch
|
blob
|
history
diff --git
a/block/blkdebug.c
b/block/blkdebug.c
index 4ec8ca69848c672a9470842bca676bb496db9481..78cbff4bdc1c3a20ebc723ad4ea160d6bf5d5e6a 100644
(file)
--- a/
block/blkdebug.c
+++ b/
block/blkdebug.c
@@
-267,6
+267,8
@@
static int read_config(BDRVBlkdebugState *s, const char *filename)
ret = 0;
fail:
+ qemu_opts_reset(&inject_error_opts);
+ qemu_opts_reset(&set_state_opts);
fclose(f);
return ret;
}