diff options
author | 2010-04-28 15:49:41 -0400 | |
---|---|---|
committer | 2010-04-29 09:16:14 -0400 | |
commit | 87d2e4ba56e6e592c7c5d7f919be719e19b07693 (patch) | |
tree | af96787f1f87f8c44673b10ea027e23a382e2d28 | |
parent | Fix a memory leak in the node_device_udev code (diff) | |
download | libvirt-87d2e4ba56e6e592c7c5d7f919be719e19b07693.tar.gz libvirt-87d2e4ba56e6e592c7c5d7f919be719e19b07693.tar.bz2 libvirt-87d2e4ba56e6e592c7c5d7f919be719e19b07693.zip |
Fix a qemuDomainPCIAddressSetFree memory leak
qemuDomainPCIAddressSetFree was freeing up the hash
table for the pci addresses, but not freeing up the addr
structure. Looking over the callers of this function, it
seems like they expect it to also free up the structure,
so do that here.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
-rw-r--r-- | src/qemu/qemu_conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index ed24916a0..5fa8c0aa1 100644 --- a/src/qemu/qemu_conf.c +++ b/src/qemu/qemu_conf.c @@ -2110,7 +2110,7 @@ void qemuDomainPCIAddressSetFree(qemuDomainPCIAddressSetPtr addrs) return; virHashFree(addrs->used, qemuDomainPCIAddressSetFreeEntry); - addrs->used = NULL; + VIR_FREE(addrs); } |