aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qapi-commands.py
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-01-10 19:21:54 +0000
committerJason Wang <jasowang@redhat.com>2017-01-20 10:58:26 +0800
commitfac7d7b1cdb21f921d7ac396365f5e920ef03096 (patch)
treedd3877fdffab1aa851a402520491ce3eb910c50e /scripts/qapi-commands.py
parenthw/pci: use-after-free in pci_nic_init_nofail when nic device fails to initialize (diff)
downloadqemu-fac7d7b1cdb21f921d7ac396365f5e920ef03096.tar.xz
qemu-fac7d7b1cdb21f921d7ac396365f5e920ef03096.zip
tap: fix memory leak on failure in net_init_tap()
Commit 091a6b2ac fixed most of the memory leaks in failure paths in net_init_tap() reported by Coverity (CID 1356216), but missed one. Fix it by deferring the allocation of fds and vhost_fds until after the error check. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions