From 01184e042b1798e9b2f688463637aaf3b0ef576f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 27 Jan 2010 01:39:24 +0100 Subject: [PATCH] after installing the transaction make sure we kill all remains ob the transaction --- manager.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manager.c b/manager.c index 682c7e7f..600b89cc 100644 --- a/manager.c +++ b/manager.c @@ -536,13 +536,17 @@ static int transaction_apply(Manager *m, JobMode mode) { assert(!j->transaction_next); assert(!j->transaction_prev); + } + + /* As last step, kill all remaining job dependencies. */ + HASHMAP_FOREACH(j, m->jobs, i) { while (j->subject_list) job_dependency_free(j->subject_list); while (j->object_list) job_dependency_free(j->object_list); } - m->transaction_anchor = NULL; + assert(!m->transaction_anchor); return 0; -- 2.39.5