From 23eaae9aff45624cd6e2fd3769a5440320e782ea Mon Sep 17 00:00:00 2001 From: Laine Stump Date: Tue, 3 Nov 2009 20:02:52 +0100 Subject: [PATCH] Fix virInterfaceIpDefPtr leak during virInterfaceIpDefFree * src/conf/interface_conf.c: forgot to free the structure itself --- src/conf/interface_conf.c | 1 + 1 file changed, 1 insertion(+) 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