diff options
author | Dan McGee <dan@archlinux.org> | 2007-04-27 03:08:34 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-04-28 08:59:58 +0200 |
commit | a3491224df3209563b68cc45b9b2d8ab747d208a (patch) | |
tree | 46f0b25b5c457479cc937e10957562ce751cd9fd /lib/libalpm/trans.c | |
parent | 0984dab1f2b7beae455518b06aa5675890e01d9c (diff) | |
download | pacman-a3491224df3209563b68cc45b9b2d8ab747d208a.tar.gz pacman-a3491224df3209563b68cc45b9b2d8ab747d208a.tar.xz |
Remove FREEPKG macro and correctly type _alpm_pkg_free
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/trans.c')
-rw-r--r-- | lib/libalpm/trans.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); |