]> git.ipfire.org Git - thirdparty/qemu.git/commit
pci: fix double free of romfile property
authorAnthony Liguori <aliguori@us.ibm.com>
Thu, 15 Mar 2012 16:29:56 +0000 (11:29 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 16 Mar 2012 18:17:06 +0000 (13:17 -0500)
commite5ab1404d014cefe22e9a10fca00d0acf4fe412b
tree38eb5da7dcb7af1d1b2c43b8b1a1185feb9ea1ca
parentae7d54d489540b49b7c13a7df7ddc220588a2ced
pci: fix double free of romfile property

The qdev property release function frees any string properties.  This was
resulting in a double free during hot unplug.

It manifests in network devices because block devices have a NULL romfile
property by default.

Cc: Michael Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pci.c