提交 fdd08607 编写于 作者: P Pavel Hrdina 提交者: Cole Robinson

conf/domain_capabilities: fix resource leak

Commit 14319c81 introduced CPU host model in domain capabilities
and the *hostmodel* variable is always filled by virCPUDefCopy()
and needs to be freed.
Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
(cherry picked from commit 87d97a9d)
上级 9a47afb1
......@@ -82,6 +82,7 @@ virDomainCapsDispose(void *obj)
VIR_FREE(caps->path);
VIR_FREE(caps->machine);
virObjectUnref(caps->cpu.custom);
virCPUDefFree(caps->cpu.hostModel);
virDomainCapsStringValuesFree(&caps->os.loader.values);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册