From 49b8d51edc550fdff519098e47a769edfc7b3f6f Mon Sep 17 00:00:00 2001 From: Matthias Bolte Date: Mon, 1 Aug 2011 10:06:59 +0200 Subject: [PATCH] conf: Don't leak the virtual port profile in virNetworkDefFree Reported by Alex Jia. --- src/conf/network_conf.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- GitLab