Signed-off-by: Kristina Hanicova <khanicov(a)redhat.com>
---
src/lxc/lxc_domain.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/lxc/lxc_domain.c b/src/lxc/lxc_domain.c
index 6f048a128a..654c35c640 100644
--- a/src/lxc/lxc_domain.c
+++ b/src/lxc/lxc_domain.c
@@ -35,11 +35,6 @@
VIR_LOG_INIT("lxc.lxc_domain");
-static void
-virLXCDomainObjFreeJob(virLXCDomainObjPrivate *priv)
-{
- ignore_value(virCondDestroy(&priv->job.cond));
-}
/* Give up waiting for mutex after 30 seconds */
#define LXC_JOB_WAIT_TIME (1000ull * 30)
@@ -142,7 +137,7 @@ virLXCDomainObjPrivateFree(void *data)
virLXCDomainObjPrivate *priv = data;
virCgroupFree(priv->cgroup);
- virLXCDomainObjFreeJob(priv);
+ virDomainObjClearJob(&priv->job);
g_free(priv);
}
--
2.37.1