mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +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");
|
||||
|
||||
|
||||
static void
|
||||
libxlDomainObjFreeJob(libxlDomainObjPrivate *priv)
|
||||
{
|
||||
ignore_value(virCondDestroy(&priv->job.cond));
|
||||
virDomainJobDataFree(priv->job.current);
|
||||
}
|
||||
|
||||
/* Give up waiting for mutex after 30 seconds */
|
||||
#define LIBXL_JOB_WAIT_TIME (1000ull * 30)
|
||||
|
||||
@ -185,7 +178,7 @@ libxlDomainObjPrivateFree(void *data)
|
||||
libxlDomainObjPrivate *priv = data;
|
||||
|
||||
g_free(priv->lockState);
|
||||
libxlDomainObjFreeJob(priv);
|
||||
virDomainObjClearJob(&priv->job);
|
||||
virChrdevFree(priv->devs);
|
||||
g_free(priv);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user