提交 87d2e4ba 编写于 作者: C Chris Lalancette

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: NChris Lalancette <clalance@redhat.com>
上级 18b3096c
......@@ -2110,7 +2110,7 @@ void qemuDomainPCIAddressSetFree(qemuDomainPCIAddressSetPtr addrs)
return;
virHashFree(addrs->used, qemuDomainPCIAddressSetFreeEntry);
addrs->used = NULL;
VIR_FREE(addrs);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册