提交 d4aaa165 编写于 作者: J John Ferlan

conf: Fix virDomainObjParseFile object handling

When virDomainObjParseFile runs, it returns a locked @obj with
one reference. Rather than just use virObjectUnref to clean that
up, use virObjectEndAPI.
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
上级 c534d10f
......@@ -284,7 +284,7 @@ static void virLXCControllerFree(virLXCControllerPtr ctrl)
VIR_FREE(ctrl->devptmx);
virObjectUnref(ctrl->vm);
virDomainObjEndAPI(&ctrl->vm);
VIR_FREE(ctrl->name);
if (ctrl->timerShutdown != -1)
......
......@@ -96,7 +96,7 @@ testCompareStatusXMLToXMLFiles(const void *opaque)
ret = 0;
cleanup:
virObjectUnref(obj);
virDomainObjEndAPI(&obj);
VIR_FREE(actual);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册