From: Kevin Wolf Date: Wed, 30 Jun 2010 15:42:23 +0000 (+0200) Subject: blkdebug: Free QemuOpts after having read the config X-Git-Tag: v0.13.0-rc0~109^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=698f0d52cde708557801de3c583cafc4a0497a14;p=thirdparty%2Fqemu.git blkdebug: Free QemuOpts after having read the config Forgetting to free them means that the next instance inherits all rules and gets its own rules only additionally. Signed-off-by: Kevin Wolf --- diff --git a/block/blkdebug.c b/block/blkdebug.c index 4ec8ca69848..78cbff4bdc1 100644 --- 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; }