]> xenbits.xensource.com Git - libvirt.git/commitdiff
vmx: Fix leak in virVMXParseEthernet
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 18 Aug 2022 13:43:13 +0000 (15:43 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 18 Aug 2022 14:00:02 +0000 (16:00 +0200)
Commit 580538c5dd7f forgot to free switchId.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/vmx/vmx.c

index 9ad463658aa874522f14ddcc6251ce54d94614b4..191f0b5e83ff315a37b13676952c0a47ecf1c90f 100644 (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;
 }