vhost: fix double free on device stop
commitc1be973ae1135588ed77b365bfd3bf063bac78ae
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 21 Jun 2011 17:34:17 +0000 (21 20:34 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 17 Jul 2011 15:47:33 +0000 (17 18:47 +0300)
treec4d1a6164f95087c91962c7b691c6451af6a20a6
parent89b9ba661bd2d6155308f895ec075d813f0e129b
vhost: fix double free on device stop

vhost dev stop failed to clear the log field.
Typically not an issue as dev start overwrites this field,
but if logging gets disabled before the following start,
it doesn't so this causes a double free.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/vhost.c