mirror of https://gitee.com/openkylin/libvirt.git
conf/domain_capabilities: fix resource leak
Commit 14319c81a0
introduced CPU host model in domain capabilities
and the *hostmodel* variable is always filled by virCPUDefCopy()
and needs to be freed.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
551503d79d
commit
87d97a9d0a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue