index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/trans.c | 7 |
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index 54267bfc..e0162524 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -86,8 +86,13 @@ void _alpm_trans_free(pmtrans_t *trans) } FREELIST(trans->packages); } else { - FREELISTPKGS(trans->packages); + alpm_list_t *tmp; + for(tmp = trans->packages; tmp; tmp = alpm_list_next(tmp)) { + _alpm_pkg_free(tmp->data); + tmp->data = NULL; + } } + trans->packages = NULL; FREELIST(trans->skip_add); FREELIST(trans->skip_remove); |