summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-04-19 23:23:04 +0200
committerMichal Schmidt <mschmidt@redhat.com>2012-04-20 17:12:27 +0200
commit121b3b318042b7fd67ac96601971c1c2f9b77be5 (patch)
tree2e7616cd9bda08d4c51278b50410533e607676a8 /src/core
parent02a3bcc6b4372ca50c0a62b193f9a75b988ffa69 (diff)
manager: simplify transaction_abort()
This is equivalent.
Diffstat (limited to 'src/core')
-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));