The second patch fixes a memory leak in qemu_config_foreach, reported by
Coverity. The first is an issue in the same place that was found by
inspection of code in the surroundings of the leak.
Paolo
v1->v2: split in two, keep loc_pop the same
Paolo Bonzini (2):
qemu-config: never call the callback after an error, fix leak
qemu-config: fix memory leak on ferror()
util/qemu-config.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
--
2.31.1