summaryrefslogtreecommitdiffstats
path: root/chardev
diff options
context:
space:
mode:
authorPaolo Bonzini2021-07-05 19:14:37 +0200
committerPaolo Bonzini2021-07-20 17:06:28 +0200
commit461fea9bf1db0e122cfc18ea07958ddebea5d9a3 (patch)
tree31176b9626ad7d2d32c13767accb7b30c9ced8e6 /chardev
parentqemu-config: never call the callback after an error, fix leak (diff)
downloadqemu-461fea9bf1db0e122cfc18ea07958ddebea5d9a3.tar.gz
qemu-461fea9bf1db0e122cfc18ea07958ddebea5d9a3.tar.xz
qemu-461fea9bf1db0e122cfc18ea07958ddebea5d9a3.zip
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>
Diffstat (limited to 'chardev')
0 files changed, 0 insertions, 0 deletions