mirror of https://gitee.com/openkylin/libvirt.git
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>
This commit is contained in:
parent
18b3096c40
commit
87d2e4ba56
|
@ -2110,7 +2110,7 @@ void qemuDomainPCIAddressSetFree(qemuDomainPCIAddressSetPtr addrs)
|
|||
return;
|
||||
|
||||
virHashFree(addrs->used, qemuDomainPCIAddressSetFreeEntry);
|
||||
addrs->used = NULL;
|
||||
VIR_FREE(addrs);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue