From c455591f379f826b5ec67b3337d6c8b05faabc8c Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Wed, 5 Apr 2017 10:25:50 +0200 Subject: [PATCH] virNetworkObjDispose: Don't leak virMacMap object 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 --- 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 48e0001899..dc15fc9acf 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