mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
vmx: Fix leak in virVMXParseEthernet
Commit 580538c5dd7f forgot to free switchId. Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
6353e8f5c1
commit
1f0a898ce3
@ -2920,6 +2920,7 @@ virVMXParseEthernet(virConf *conf, int controller, virDomainNetDef **def)
|
||||
VIR_FREE(address);
|
||||
VIR_FREE(virtualDev);
|
||||
VIR_FREE(vnet);
|
||||
VIR_FREE(switchId);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user