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 <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2017-04-05 10:25:50 +02:00
parent 349badbffd
commit c455591f37
1 changed files with 1 additions and 0 deletions

View File

@ -443,6 +443,7 @@ virNetworkObjDispose(void *obj)
virNetworkDefFree(net->def);
virNetworkDefFree(net->newDef);
virBitmapFree(net->class_id);
virObjectUnref(net->macmap);
}
static void