[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/4] virtio-blk: Fix memleak on exit
From: |
Amit Shah |
Subject: |
[Qemu-devel] [PATCH 2/4] virtio-blk: Fix memleak on exit |
Date: |
Wed, 27 Jul 2011 14:00:30 +0530 |
Calling virtio_cleanup() will free up memory allocated in
virtio_common_init().
Signed-off-by: Amit Shah <address@hidden>
---
hw/virtio-blk.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
index 6471ac8..836dbc3 100644
--- a/hw/virtio-blk.c
+++ b/hw/virtio-blk.c
@@ -594,4 +594,5 @@ void virtio_blk_exit(VirtIODevice *vdev)
{
VirtIOBlock *s = to_virtio_blk(vdev);
unregister_savevm(s->qdev, "virtio-blk", s);
+ virtio_cleanup(vdev);
}
--
1.7.6
- [Qemu-devel] [PATCH 0/4] Fix virtio memleaks, Amit Shah, 2011/07/27
- [Qemu-devel] [PATCH 1/4] virtio-balloon: Add exit handler, fix memleaks, Amit Shah, 2011/07/27
- [Qemu-devel] [PATCH 2/4] virtio-blk: Fix memleak on exit,
Amit Shah <=
- [Qemu-devel] [PATCH 3/4] virtio-net: Fix potential use-after-free, Amit Shah, 2011/07/27
- [Qemu-devel] [PATCH 4/4] virtio: Plug memleak by freeing vdev, Amit Shah, 2011/07/27
- Re: [Qemu-devel] [PATCH 0/4] Fix virtio memleaks, Michael S. Tsirkin, 2011/07/27