提交 698f0d52 编写于 作者: K Kevin Wolf

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: NKevin Wolf <kwolf@redhat.com>
上级 327cdad4
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册