Matthias Weckbecker e7176cdbe4 hw/pci-bridge: Fix invalid free()
When loadvm'ing a *running* snapshot qemu crashes due to an invalid
free. It's fortunately caught early by glibc heap memory corruption
protection and qemu gets killed with SIGABRT.

Steps to reproduce:

1) Create VM (e.g w/ virsh define)
2) Start the VM and take a snapshot while it's running and having a
   PCI bridge attached
3) Destroy the VM and revert the running snapshot.

This commit fixes the issue.

Signed-off-by: Matthias Weckbecker <matthias@weckbecker.name>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2018-12-19 16:48:16 -05:00
..
2018-11-27 15:35:15 +01:00
2018-12-19 16:48:16 -05:00
2016-01-29 15:07:24 +00:00
2018-03-02 13:45:50 -06:00
2018-12-14 13:30:51 +00:00
2016-01-29 15:07:24 +00:00
2018-11-27 15:35:15 +01:00
2017-07-03 22:29:49 +03:00