提交 c455591f 编写于 作者: M Michal Privoznik

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: NMichal Privoznik <mprivozn@redhat.com>
上级 349badbf
...@@ -443,6 +443,7 @@ virNetworkObjDispose(void *obj) ...@@ -443,6 +443,7 @@ virNetworkObjDispose(void *obj)
virNetworkDefFree(net->def); virNetworkDefFree(net->def);
virNetworkDefFree(net->newDef); virNetworkDefFree(net->newDef);
virBitmapFree(net->class_id); virBitmapFree(net->class_id);
virObjectUnref(net->macmap);
} }
static void static void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册