Searched hist:fac7d7b1cdb21f921d7ac396365f5e920ef03096 (Results 1 – 1 of 1) sorted by relevance
/qemu/net/ |
H A D | tap.c | fac7d7b1cdb21f921d7ac396365f5e920ef03096 Tue Jan 10 19:21:54 UTC 2017 Peter Maydell <peter.maydell@linaro.org> 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>
|