mbox series

[v3,0/3] virtio: fix memory leak in virtio-balloon/virtio-serial-bus

Message ID 1575856810-9388-1-git-send-email-pannengyuan@huawei.com (mailing list archive)
Headers show
Series virtio: fix memory leak in virtio-balloon/virtio-serial-bus | expand

Message

Pan Nengyuan Dec. 9, 2019, 2 a.m. UTC
From: Pan Nengyuan <pannengyuan@huawei.com>

This series add a new function to cleanup vqueue through a vq pointer, and fix memory
leaks in virtio-balloon and virtio-serial-bus.

---
Changes v2 to v1:
- add a new function to cleanup vqueue through a vq pointer.
---
Changes v3 to v2:
- change function name from virtio_delete_queue to virtio_queue_cleanup.

Michael S. Tsirkin(1)
  virtio: add ability to delete vq through a pointer 

Pan Nengyuan (2):
  virtio-balloon: fix memory leak while attach virtio-balloon device
  virtio-serial-bus: fix memory leak while attach virtio-serial-bus

 hw/char/virtio-serial-bus.c |  8 ++++++++
 hw/virtio/virtio-balloon.c  |  7 +++++++
 hw/virtio/virtio.c          | 16 +++++++++++-----
 include/hw/virtio/virtio.h  |  2 ++
 4 files changed, 28 insertions(+), 5 deletions(-)