Paolo Bonzini e72f9524fe qemu-config: never call the callback after an error, fix leak
Ensure that the callback to qemu_config_foreach is never called upon
an error, by moving the invocation before the "out" label.

Cc: armbru@redhat.com
Fixes: 3770141139 ("qemu-config: parse configuration files to a QDict", 2021-06-04)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-07-20 17:06:28 +02:00
..
2020-01-06 18:41:32 +04:00
2021-07-06 08:33:51 +02:00
2019-09-11 08:46:17 +02:00
2021-07-09 18:20:27 +02:00
2020-12-10 17:16:44 +01:00
2021-06-13 17:42:40 -07:00
2021-07-09 18:42:46 +02:00
2018-12-20 10:29:08 +01:00
2021-07-09 18:20:27 +02:00
2021-04-30 12:27:47 +02:00
2018-08-24 20:26:37 +02:00
2021-04-01 15:27:44 +04:00