提交 8ebd3d88 编写于 作者: C Chen Hanxiao 提交者: Ján Tomko

daemon: don't free domain if it's null

If we fail to get domain, we had to judge whether
it's null or not when doing 'cleanup'.
Signed-off-by: NChen Hanxiao <chenhanxiao@cn.fujitsu.com>
上级 0cacffac
......@@ -4643,6 +4643,7 @@ lxcDispatchDomainOpenNamespace(virNetServerPtr server ATTRIBUTE_UNUSED,
cleanup:
if (rv < 0)
virNetMessageSaveError(rerr);
if (dom)
virDomainFree(dom);
return rv;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册