Gonglei 91ba212088 virtio-balloon: fix virtio-balloon child refcount in transports
object_initialize() leaves the object with a refcount of 1.
object_property_add_child() adds its own reference which is dropped
again when the property is deleted.

The upshot of this is that we always have a refcount >= 1.  Upon hot
unplug the virtio-balloon child is not finalized!

Drop our reference after the child property has been added to the
parent.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-09-30 11:09:31 +02:00
..
2014-08-15 19:12:48 +04:00
2014-09-18 20:02:01 +01:00
2013-12-24 18:02:18 +01:00
2014-09-02 22:38:16 +04:00
2014-09-22 12:09:43 +04:00
2014-09-11 12:20:32 +02:00
2014-09-02 22:38:16 +04:00
2014-09-02 22:38:16 +04:00
2014-08-14 13:22:00 +02:00
2014-09-22 11:39:49 +01:00
2014-06-30 21:13:30 +02:00
2014-08-25 00:16:06 +02:00
2014-08-18 12:06:21 +02:00