[PATCH 4/5] vmx; Free @checkMACAddress in virVMXParseEthernet()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/vmx/vmx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/vmx/vmx.c b/src/vmx/vmx.c
index 4b1b04c6e1..9894d5c0ce 100644
--- a/src/vmx/vmx.c
+++ b/src/vmx/vmx.c
@@ -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);
-- 
2.26.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux