mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-31 22:17:17 +00:00
libxl: use virDomainObjClearJob() instead of libxlDomainObjFreeJob()
Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
d5b677792c
commit
09ed065443
@ -44,13 +44,6 @@
|
|||||||
VIR_LOG_INIT("libxl.libxl_domain");
|
VIR_LOG_INIT("libxl.libxl_domain");
|
||||||
|
|
||||||
|
|
||||||
static void
|
|
||||||
libxlDomainObjFreeJob(libxlDomainObjPrivate *priv)
|
|
||||||
{
|
|
||||||
ignore_value(virCondDestroy(&priv->job.cond));
|
|
||||||
virDomainJobDataFree(priv->job.current);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Give up waiting for mutex after 30 seconds */
|
/* Give up waiting for mutex after 30 seconds */
|
||||||
#define LIBXL_JOB_WAIT_TIME (1000ull * 30)
|
#define LIBXL_JOB_WAIT_TIME (1000ull * 30)
|
||||||
|
|
||||||
@ -185,7 +178,7 @@ libxlDomainObjPrivateFree(void *data)
|
|||||||
libxlDomainObjPrivate *priv = data;
|
libxlDomainObjPrivate *priv = data;
|
||||||
|
|
||||||
g_free(priv->lockState);
|
g_free(priv->lockState);
|
||||||
libxlDomainObjFreeJob(priv);
|
virDomainObjClearJob(&priv->job);
|
||||||
virChrdevFree(priv->devs);
|
virChrdevFree(priv->devs);
|
||||||
g_free(priv);
|
g_free(priv);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user