[PATCH] vmx: Fix leak in virVMXParseEthernet

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

 



Commit 580538c5dd7f forgot to free switchId.

Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
 src/vmx/vmx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/vmx/vmx.c b/src/vmx/vmx.c
index 9ad463658aa8..191f0b5e83ff 100644
--- a/src/vmx/vmx.c
+++ b/src/vmx/vmx.c
@@ -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;
 }
-- 
2.37.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