]> git.proxmox.com Git - qemu.git/commit
qdev-monitor-test: add device_add leak test cases
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 30 Oct 2013 13:54:35 +0000 (14:54 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 7 Nov 2013 12:58:58 +0000 (13:58 +0100)
commit43cd209803d6cffb1e1a028c9ff2fd0ff4fce954
tree51246e665144402dea89699f24e88f0d2fe917eb
parent7ceeedd016facf8d58e14a0d1417fa7225d71072
qdev-monitor-test: add device_add leak test cases

Ensure that the device_add error code path deletes device objects.
Failure to do so not only leaks the objects but can also keep other
objects (like drive or netdev) alive due to qdev properties holding
references.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/Makefile
tests/qdev-monitor-test.c [new file with mode: 0644]