mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
conf: Use virDomainChrSourceDefClear() rather than VIR_FREE()
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
ac23367c10
commit
f982c92c8f
@ -2645,7 +2645,7 @@ void virDomainTPMDefFree(virDomainTPMDefPtr def)
|
||||
|
||||
switch (def->type) {
|
||||
case VIR_DOMAIN_TPM_TYPE_PASSTHROUGH:
|
||||
VIR_FREE(def->data.passthrough.source.data.file.path);
|
||||
virDomainChrSourceDefClear(&def->data.passthrough.source);
|
||||
break;
|
||||
case VIR_DOMAIN_TPM_TYPE_EMULATOR:
|
||||
virDomainChrSourceDefClear(&def->data.emulator.source);
|
||||
|
Loading…
Reference in New Issue
Block a user