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: NStefan Hajnoczi <stefanha@redhat.com> Reviewed-by: NEric Blake <eblake@redhat.com>
Showing
tests/qdev-monitor-test.c
0 → 100644
想要评论请 注册 或 登录