You need to sign in or sign up before continuing.
libxl: fix segfault in libxlReconnectDomain
In case of error, libxlReconnectDomain may call virDomainObjListRemoveLocked. However it has no local reference on the domain object, leading to segfault. Get a reference to the domain object at the start of the function and release it at the end to avoid problems. This commit also factorizes code between the error and normal ends.
Showing
想要评论请 注册 或 登录