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: v1~809 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=01184e042b1798e9b2f688463637aaf3b0ef576f;hp=8f5847c48e53882b3f94ee2693e65a23edbf8295 after installing the transaction make sure we kill all remains ob the transaction --- diff --git a/manager.c b/manager.c index 682c7e7f2..600b89ccf 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;