]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
vmx; Free @checkMACAddress in virVMXParseEthernet()
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 2 Oct 2020 08:39:58 +0000 (10:39 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 2 Oct 2020 10:48:55 +0000 (12:48 +0200)
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>
src/vmx/vmx.c

index 4b1b04c6e15124107b919ceeb176ba2c27967b5f..9894d5c0ce787bb37ad7fdabb31b80e9dd80af52 100644 (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);