]> git.ipfire.org Git - thirdparty/qemu.git/commit
tap: fix memory leak on success to create a tap device
authorYunjian Wang <wangyunjian@huawei.com>
Thu, 31 May 2018 07:28:22 +0000 (15:28 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 23 Jul 2018 19:20:45 +0000 (14:20 -0500)
commit1b817abcd4dbb8c0db98fdd9f4f805a50c45e1bb
tree83de4393ba6ed4cc768d92e22e5caaadfb1a9010
parent0935356e43a2f3f707de7e2fdcb525e4848fb0d4
tap: fix memory leak on success to create a tap device

The memory leak on success to create a tap device. And the nfds and
nvhosts may not be the same and need to be processed separately.

Fixes: 07825977 ("tap: fix memory leak on failure to create a multiqueue tap device")
Fixes: 264986e2 ("tap: multiqueue support")
Cc: qemu-stable@nongnu.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
(cherry picked from commit 323e7c117754e4d4ce6b4282d74ad01c99d67714)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
net/tap.c