]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Don't leak the virtual port profile in virNetworkDefFree
authorMatthias Bolte <matthias.bolte@googlemail.com>
Mon, 1 Aug 2011 08:06:59 +0000 (10:06 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Mon, 1 Aug 2011 08:06:59 +0000 (10:06 +0200)
Reported by Alex Jia.

src/conf/network_conf.c

index 6714c209a764c78bc482d99311c8efe72f34b7c2..b11c4820aaff9613751c87af42f546e02a1cb31f 100644 (file)
@@ -169,6 +169,8 @@ void virNetworkDefFree(virNetworkDefPtr def)
 
     virNetworkDNSDefFree(def->dns);
 
+    VIR_FREE(def->virtPortProfile);
+
     virBandwidthDefFree(def->bandwidth);
 
     VIR_FREE(def);