]> git.proxmox.com Git - qemu.git/commitdiff
blkdebug: Free QemuOpts after having read the config
authorKevin Wolf <kwolf@redhat.com>
Wed, 30 Jun 2010 15:42:23 +0000 (17:42 +0200)
committerKevin 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

index 4ec8ca69848c672a9470842bca676bb496db9481..78cbff4bdc1c3a20ebc723ad4ea160d6bf5d5e6a 100644 (file)
@@ -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;
 }