diff --git a/block/blkdebug.c b/block/blkdebug.c index 4ec8ca69848c672a9470842bca676bb496db9481..78cbff4bdc1c3a20ebc723ad4ea160d6bf5d5e6a 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; }