mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-26 14:35:18 +00:00
CH: use virDomainObjClearJob() instead of virCHDomainObjFreeJob()
Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
15558166b2
commit
d6f3cd75d7
@ -32,12 +32,6 @@
|
|||||||
|
|
||||||
VIR_LOG_INIT("ch.ch_domain");
|
VIR_LOG_INIT("ch.ch_domain");
|
||||||
|
|
||||||
static void
|
|
||||||
virCHDomainObjFreeJob(virCHDomainObjPrivate *priv)
|
|
||||||
{
|
|
||||||
ignore_value(virCondDestroy(&priv->job.cond));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* obj must be locked before calling, virCHDriver must NOT be locked
|
* obj must be locked before calling, virCHDriver must NOT be locked
|
||||||
*
|
*
|
||||||
@ -129,7 +123,7 @@ virCHDomainObjPrivateAlloc(void *opaque)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!(priv->chrdevs = virChrdevAlloc())) {
|
if (!(priv->chrdevs = virChrdevAlloc())) {
|
||||||
virCHDomainObjFreeJob(priv);
|
virDomainObjClearJob(&priv->job);
|
||||||
g_free(priv);
|
g_free(priv);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -144,7 +138,7 @@ virCHDomainObjPrivateFree(void *data)
|
|||||||
virCHDomainObjPrivate *priv = data;
|
virCHDomainObjPrivate *priv = data;
|
||||||
|
|
||||||
virChrdevFree(priv->chrdevs);
|
virChrdevFree(priv->chrdevs);
|
||||||
virCHDomainObjFreeJob(priv);
|
virDomainObjClearJob(&priv->job);
|
||||||
g_free(priv->machineName);
|
g_free(priv->machineName);
|
||||||
g_free(priv);
|
g_free(priv);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user