mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
vmx: Fix leak in virVMXParseEthernet
Commit 580538c5dd
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…
Reference in New Issue
Block a user