diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2013-09-10 18:21:08 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-11-05 18:06:24 +0100 |
commit | ee6abeb6ec08473713848ce9028110f1684853b7 (patch) | |
tree | 5fc29c54230425e4a26d9723dadd48f4c89b18bc /hw | |
parent | 2fa4e56d88aa0039062bbc7f9a88e9f90c77ed94 (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')
0 files changed, 0 insertions, 0 deletions