commit | d92551f28eff7cb6572ed3147399e51f5f5dfc22 | [log] [tgz] |
---|---|---|
author | Amit Shah <amit.shah@redhat.com> | Wed Jul 27 14:00:30 2011 +0530 |
committer | Michael S. Tsirkin <mst@redhat.com> | Wed Jul 27 20:08:19 2011 +0300 |
tree | 9ad92ab5eb940e1781feb0426251bcf6f420c886 | |
parent | 1129714ff43bd947740d587956a655210e8b93ed [diff] |
virtio-blk: Fix memleak on exit Calling virtio_cleanup() will free up memory allocated in virtio_common_init(). Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
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 @@ { VirtIOBlock *s = to_virtio_blk(vdev); unregister_savevm(s->qdev, "virtio-blk", s); + virtio_cleanup(vdev); }