提交 849b6a7b 编写于 作者: J John Ferlan

lxc: Use virDomainObjEndAPI after FindByName

For consistency, rather than open coding the Unref and Unlock,
just use the virDomainObjEndAPI API.
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
上级 bb0e0bcf
......@@ -420,8 +420,7 @@ static int virLXCProcessSetupNamespaceName(virConnectPtr conn, int ns_type, cons
cleanup:
VIR_FREE(path);
virObjectUnlock(vm);
virObjectUnref(vm);
virDomainObjEndAPI(&vm);
return fd;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册