vmx; Free @checkMACAddress in virVMXParseEthernet()

The @checkMACAddress string is allocated in
virVMXGetConfigString() but never freed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Michal Privoznik 2020-10-02 10:39:58 +02:00
parent 053beeb04d
commit cbd984d43a

View File

@ -2734,6 +2734,7 @@ virVMXParseEthernet(virConfPtr conf, int controller, virDomainNetDefPtr *def)
VIR_FREE(networkName);
VIR_FREE(connectionType);
VIR_FREE(addressType);
VIR_FREE(checkMACAddress);
VIR_FREE(generatedAddress);
VIR_FREE(address);
VIR_FREE(virtualDev);