mirror of https://gitee.com/openkylin/qemu.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 <kwolf@redhat.com>
This commit is contained in:
parent
327cdad416
commit
698f0d52cd
|
@ -267,6 +267,8 @@ static int read_config(BDRVBlkdebugState *s, const char *filename)
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
fail:
|
fail:
|
||||||
|
qemu_opts_reset(&inject_error_opts);
|
||||||
|
qemu_opts_reset(&set_state_opts);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue