chiark / gitweb /
after installing the transaction make sure we kill all remains ob the transaction
authorLennart Poettering <lennart@poettering.net>
Wed, 27 Jan 2010 00:39:24 +0000 (01:39 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Jan 2010 00:39:24 +0000 (01:39 +0100)
manager.c

index 682c7e7..600b89c 100644 (file)
--- 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;