mirror of https://gitee.com/openkylin/libvirt.git
libxl: remove redundant calls to libxl_evdisable_domain_death
Domain death watch is already disabled in libxlDomainCleanup. No need to disable it a second and third time. Signed-off-by: Jim Fehlig <jfehlig@suse.com>
This commit is contained in:
parent
6cfc8834c8
commit
fc3ef44ea4
|
@ -439,9 +439,6 @@ libxlDomainObjPrivateDispose(void *obj)
|
||||||
{
|
{
|
||||||
libxlDomainObjPrivatePtr priv = obj;
|
libxlDomainObjPrivatePtr priv = obj;
|
||||||
|
|
||||||
if (priv->deathW)
|
|
||||||
libxl_evdisable_domain_death(priv->ctx, priv->deathW);
|
|
||||||
|
|
||||||
libxlDomainObjFreeJob(priv);
|
libxlDomainObjFreeJob(priv);
|
||||||
virChrdevFree(priv->devs);
|
virChrdevFree(priv->devs);
|
||||||
libxl_ctx_free(priv->ctx);
|
libxl_ctx_free(priv->ctx);
|
||||||
|
@ -456,11 +453,6 @@ libxlDomainObjPrivateFree(void *data)
|
||||||
{
|
{
|
||||||
libxlDomainObjPrivatePtr priv = data;
|
libxlDomainObjPrivatePtr priv = data;
|
||||||
|
|
||||||
if (priv->deathW) {
|
|
||||||
libxl_evdisable_domain_death(priv->ctx, priv->deathW);
|
|
||||||
priv->deathW = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
virObjectUnref(priv);
|
virObjectUnref(priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue