From: Michal Privoznik Date: Wed, 5 Apr 2017 08:25:50 +0000 (+0200) Subject: virNetworkObjDispose: Don't leak virMacMap object X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c455591f379f826b5ec67b3337d6c8b05faabc8c;p=libvirt.git 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 --- 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