Re: [libvirt] [PATCH 1/4] qemu: Don't free PCI device if adding it to activePciHostdevs fails

2012-12-04 Thread Osier Yang
On 2012年12月04日 18:38, Jiri Denemark wrote: The device is still referenced from pcidevs and freeing it would leave an invalid pointer there. --- src/qemu/qemu_hostdev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/qemu/qemu_hostdev.c b/src/qemu/qemu_hostdev.c index

[libvirt] [PATCH 1/4] qemu: Don't free PCI device if adding it to activePciHostdevs fails

2012-12-04 Thread Jiri Denemark
The device is still referenced from pcidevs and freeing it would leave an invalid pointer there. --- src/qemu/qemu_hostdev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/qemu/qemu_hostdev.c b/src/qemu/qemu_hostdev.c index ab0f173..b79319e 100644 --- a/src/qemu/qemu_ho