index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2009-06-07 14:30:11 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-06-07 15:11:16 -0500 |
commit | 19b8b638851713da64dd2aa7ff31e911ffe925cd (patch) | |
tree | 20ca058a5f6b1ffab444b0c09e98a85d16f09455 /lib/libalpm/trans.c | |
parent | e61ab1536f4b198ac5c62cf68d706d93bc6481be (diff) |
-rw-r--r-- | lib/libalpm/trans.c | 7 |
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index 64bec84e..fcbb5e2f 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -248,12 +248,7 @@ void _alpm_trans_free(pmtrans_t *trans) } if(trans->type == PM_TRANS_TYPE_SYNC) { - alpm_list_t *i; - for(i = trans->packages; i; i = i->next) { - pmpkg_t *pkg = i->data; - alpm_list_free(pkg->removes); - pkg->removes = NULL; - } + alpm_list_free_inner(trans->packages, (alpm_list_fn_free)_alpm_pkg_free_trans); } else { alpm_list_free_inner(trans->packages, (alpm_list_fn_free)_alpm_pkg_free); } |