提交 8c9b93cd 编写于 作者: J Jiri Denemark

qemu: Introduce virQEMUCapsAccelClear

Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 2e754ed6
......@@ -1674,6 +1674,14 @@ virQEMUCapsPtr virQEMUCapsNewCopy(virQEMUCapsPtr qemuCaps)
}
static void
virQEMUCapsAccelClear(virQEMUCapsAccelPtr caps)
{
virQEMUCapsHostCPUDataClear(&caps->hostCPU);
virObjectUnref(caps->cpuModels);
}
void virQEMUCapsDispose(void *obj)
{
virQEMUCapsPtr qemuCaps = obj;
......@@ -1686,9 +1694,6 @@ void virQEMUCapsDispose(void *obj)
VIR_FREE(qemuCaps->machineTypes);
virHashFree(qemuCaps->domCapsCache);
virObjectUnref(qemuCaps->kvm.cpuModels);
virObjectUnref(qemuCaps->tcg.cpuModels);
virBitmapFree(qemuCaps->flags);
VIR_FREE(qemuCaps->package);
......@@ -1699,8 +1704,8 @@ void virQEMUCapsDispose(void *obj)
virSEVCapabilitiesFree(qemuCaps->sevCapabilities);
virQEMUCapsHostCPUDataClear(&qemuCaps->kvm.hostCPU);
virQEMUCapsHostCPUDataClear(&qemuCaps->tcg.hostCPU);
virQEMUCapsAccelClear(&qemuCaps->kvm);
virQEMUCapsAccelClear(&qemuCaps->tcg);
}
void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册