Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/trans.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-04-26 21:08:34 -0400
committerDan McGee <dan@archlinux.org>2007-04-28 02:59:58 -0400
commita3491224df3209563b68cc45b9b2d8ab747d208a (patch)
tree46f0b25b5c457479cc937e10957562ce751cd9fd /lib/libalpm/trans.c
parent0984dab1f2b7beae455518b06aa5675890e01d9c (diff)
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.c7
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);