[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 01/13] vhost-user: fix memory leak
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PULL 01/13] vhost-user: fix memory leak |
Date: |
Thu, 1 Mar 2018 18:45:53 +0200 |
From: linzhecheng <address@hidden>
g_free() was moved from vhost_net_cleanup in commit e6bcb1b, so we should
free net after vhost_net_cleanup
Signed-off-by: linzhecheng <address@hidden>
Reviewed-by: Marc-André Lureau < address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
---
net/vhost-user.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/vhost-user.c b/net/vhost-user.c
index cb45512..d024573 100644
--- a/net/vhost-user.c
+++ b/net/vhost-user.c
@@ -109,6 +109,7 @@ static int vhost_user_start(int queues, NetClientState
*ncs[], CharBackend *be)
err:
if (net) {
vhost_net_cleanup(net);
+ g_free(net);
}
vhost_user_stop(i, ncs);
return -1;
--
MST
- [Qemu-devel] [PULL 00/13] virtio, vhost, pci, pc: features, fixes and cleanups, Michael S. Tsirkin, 2018/03/01
- [Qemu-devel] [PULL 03/13] intel-iommu: Accept 64-bit writes to FEADDR, Michael S. Tsirkin, 2018/03/01
- [Qemu-devel] [PULL 01/13] vhost-user: fix memory leak,
Michael S. Tsirkin <=
- [Qemu-devel] [PULL 02/13] virtio-pci: trivial fixes in error message, Michael S. Tsirkin, 2018/03/01
- [Qemu-devel] [PULL 04/13] docs: document virtio-balloon stats, Michael S. Tsirkin, 2018/03/01
- [Qemu-devel] [PULL 09/13] docs/vmcoreinfo: detail unsupported host format behaviour, Michael S. Tsirkin, 2018/03/01
- [Qemu-devel] [PULL 05/13] docs: pcie: Spell out machine type needs for PCIe features, Michael S. Tsirkin, 2018/03/01
- [Qemu-devel] [PULL 06/13] vhost: fix memslot limit check, Michael S. Tsirkin, 2018/03/01
- [Qemu-devel] [PULL 11/13] cryptodev: add vhost support, Michael S. Tsirkin, 2018/03/01
- [Qemu-devel] [PULL 10/13] cryptodev: add vhost-user as a new cryptodev backend, Michael S. Tsirkin, 2018/03/01
- [Qemu-devel] [PULL 07/13] vhost: avoid to start/stop virtqueue which is not ready, Michael S. Tsirkin, 2018/03/01
- [Qemu-devel] [PULL 08/13] vhost: fix incorrect check in vhost_verify_ring_mappings, Michael S. Tsirkin, 2018/03/01
- [Qemu-devel] [PULL 13/13] cryptodev-vhost-user: set the key length, Michael S. Tsirkin, 2018/03/01