From: Matthias Bolte Date: Mon, 1 Aug 2011 08:06:59 +0000 (+0200) Subject: conf: Don't leak the virtual port profile in virNetworkDefFree X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=49b8d51edc550fdff519098e47a769edfc7b3f6f;p=libvirt.git conf: Don't leak the virtual port profile in virNetworkDefFree Reported by Alex Jia. --- diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c index 6714c209a7..b11c4820aa 100644 --- a/src/conf/network_conf.c +++ b/src/conf/network_conf.c @@ -169,6 +169,8 @@ void virNetworkDefFree(virNetworkDefPtr def) virNetworkDNSDefFree(def->dns); + VIR_FREE(def->virtPortProfile); + virBandwidthDefFree(def->bandwidth); VIR_FREE(def);