Searched hist:"461 fea9bf1db0e122cfc18ea07958ddebea5d9a3" (Results 1 – 1 of 1) sorted by relevance
/qemu/util/ |
H A D | qemu-config.c | 461fea9bf1db0e122cfc18ea07958ddebea5d9a3 Mon Jul 05 17:14:37 UTC 2021 Paolo Bonzini <pbonzini@redhat.com> qemu-config: fix memory leak on ferror()
The leak is basically impossible to reach, since the only common way to get ferror(fp) is by passing a directory to -readconfig. In that case, the error occurs before qdict is set to anything non-NULL. However, it's theoretically possible to get there after an EIO.
Cc: armbru@redhat.com Reported-by: Peter Maydell <peter.maydell@linaro.org> Fixes: f7544edcd3 ("qemu-config: add error propagation to qemu_config_parse", 2021-03-06) Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|