[libvirt] [PATCH 2/3] virNetworkObjDispose: Don't leak virMacMap object
Michal Privoznik
mprivozn at redhat.com
Wed Apr 5 08:50:54 UTC 2017
Even though the virMacMap object is not necessarily created at
the same time as the network object, the former makes no sense
without the latter and thus should be unref'd in the network
object dispose function.
Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
src/conf/network_conf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c
index 48e0001..dc15fc9 100644
--- a/src/conf/network_conf.c
+++ b/src/conf/network_conf.c
@@ -443,6 +443,7 @@ virNetworkObjDispose(void *obj)
virNetworkDefFree(net->def);
virNetworkDefFree(net->newDef);
virBitmapFree(net->class_id);
+ virObjectUnref(net->macmap);
}
static void
--
2.10.2
More information about the libvir-list
mailing list