summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-27 01:39:24 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-27 01:39:24 +0100
commit01184e042b1798e9b2f688463637aaf3b0ef576f (patch)
treedc285f78592551bf4de2854d981570f384ca8093
parent8f5847c48e53882b3f94ee2693e65a23edbf8295 (diff)
after installing the transaction make sure we kill all remains ob the transaction
-rw-r--r--manager.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/manager.c b/manager.c
index 682c7e7f26..600b89ccf5 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;