aboutsummaryrefslogtreecommitdiff
path: root/hw/pci
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2013-09-10 18:21:08 +0200
committerAndreas Färber <afaerber@suse.de>2013-11-05 18:06:24 +0100
commitee6abeb6ec08473713848ce9028110f1684853b7 (patch)
tree5fc29c54230425e4a26d9723dadd48f4c89b18bc /hw/pci
parent2fa4e56d88aa0039062bbc7f9a88e9f90c77ed94 (diff)
qdev-monitor: Unref device when device_add fails
qdev_device_add() leaks the created device upon failure. I suspect this problem crept in because qdev_free() unparents the device but does not drop a reference - confusing name. Cc: qemu-stable@nongnu.org Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/pci')
0 files changed, 0 insertions, 0 deletions