summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/manager.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index aa918f1bd0..546b3233b0 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -710,12 +710,7 @@ static void transaction_abort(Manager *m) {
assert(m);
while ((j = hashmap_first(m->transaction_jobs)))
- if (j->installed)
- transaction_delete_job(m, j, true);
- else {
- transaction_unlink_job(m, j, true);
- job_free(j);
- }
+ transaction_delete_job(m, j, true);
assert(hashmap_isempty(m->transaction_jobs));