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-Tag: v0.9.4~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49b8d51edc550fdff519098e47a769edfc7b3f6f;p=thirdparty%2Flibvirt.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);