From: Laine Stump Date: Tue, 3 Nov 2009 19:02:52 +0000 (+0100) Subject: Fix virInterfaceIpDefPtr leak during virInterfaceIpDefFree X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=23eaae9aff45624cd6e2fd3769a5440320e782ea;p=libvirt.git Fix virInterfaceIpDefPtr leak during virInterfaceIpDefFree * src/conf/interface_conf.c: forgot to free the structure itself --- diff --git a/src/conf/interface_conf.c b/src/conf/interface_conf.c index 7cb71edc9f..dafce14df4 100644 --- a/src/conf/interface_conf.c +++ b/src/conf/interface_conf.c @@ -58,6 +58,7 @@ void virInterfaceIpDefFree(virInterfaceIpDefPtr def) { if (def == NULL) return; VIR_FREE(def->address); + VIR_FREE(def); } static