From: Lennart Poettering Date: Wed, 27 Jan 2010 00:39:24 +0000 (+0100) Subject: after installing the transaction make sure we kill all remains ob the transaction X-Git-Tag: 0.git+20100605+dfd8ee-1~412 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01184e042b1798e9b2f688463637aaf3b0ef576f;p=systemd after installing the transaction make sure we kill all remains ob the transaction --- 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;