aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lalancette <clalance@redhat.com>2010-04-28 15:49:41 -0400
committerChris Lalancette <clalance@redhat.com>2010-04-29 09:16:14 -0400
commit87d2e4ba56e6e592c7c5d7f919be719e19b07693 (patch)
treeaf96787f1f87f8c44673b10ea027e23a382e2d28
parentFix a memory leak in the node_device_udev code (diff)
downloadlibvirt-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.c2
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);
}