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:
Martin Kletzander 2022-08-18 15:43:13 +02:00
parent 6353e8f5c1
commit 1f0a898ce3

View File

@ -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;
}