提交 c6351cc6 编写于 作者: P Peter Krempa

qemu: Fix domain object leak in qemuDomainInterfaceAddresses

The API didn't use virDomainObjEndAPI to release the domain object thus
it leaked a reference to it.
上级 24999287
......@@ -19838,8 +19838,7 @@ qemuDomainInterfaceAddresses(virDomainPtr dom,
}
cleanup:
if (vm)
virObjectUnlock(vm);
virDomainObjEndAPI(&vm);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册