diff options
author | Amit Shah <amit.shah@redhat.com> | 2011-07-27 14:00:30 +0530 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2011-07-27 20:08:19 +0300 |
commit | d92551f28eff7cb6572ed3147399e51f5f5dfc22 (patch) | |
tree | 9ad92ab5eb940e1781feb0426251bcf6f420c886 /hw/virtio-blk.c | |
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>
Diffstat (limited to 'hw/virtio-blk.c')
-rw-r--r-- | 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 6471ac85ab..836dbc3c12 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); } |