virtio-serial: Plug memory leak on qdev exit()
commit5e52e5f903b2648c59030637e1610b32e965d615
authorMarkus Armbruster <armbru@redhat.com>
Wed, 25 May 2011 12:21:10 +0000 (25 14:21 +0200)
committerAmit Shah <amit.shah@redhat.com>
Fri, 27 May 2011 10:20:55 +0000 (27 15:50 +0530)
tree3e76063e50c012867deb2f55a9523a01340230be
parent199646d81522509ac2dba6d28c31e8c7d807bc93
virtio-serial: Plug memory leak on qdev exit()

virtio_serial_init() allocates the VirtIOSerialBus dynamically, but
virtio_serial_exit() doesn't free it.

Fix by getting rid of the allocation.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
hw/virtio-serial-bus.c