summaryrefslogtreecommitdiff
path: root/lib/libalpm/trans.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-04-26 20:15:51 -0400
committerDan McGee <dan@archlinux.org>2007-04-27 20:38:54 -0400
commit3cf8a333d04cd8b55edfe63bd8f4dd322a88a4d0 (patch)
tree4687343834084a984dcf2490699428310b21333f /lib/libalpm/trans.c
parentec7d6955b821c51a28efce31268c9c23cb1b5928 (diff)
downloadpacman-3cf8a333d04cd8b55edfe63bd8f4dd322a88a4d0.tar.xz
Remove FREEGRP macro and correctly type _alpm_grp_free
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/trans.c')
-rw-r--r--lib/libalpm/trans.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c
index a101be4c..54267bfc 100644
--- a/lib/libalpm/trans.c
+++ b/lib/libalpm/trans.c
@@ -80,8 +80,9 @@ void _alpm_trans_free(pmtrans_t *trans)
FREELIST(trans->targets);
if(trans->type == PM_TRANS_TYPE_SYNC) {
alpm_list_t *i;
- for(i = trans->packages; i; i = i->next) {
+ for(i = trans->packages; i; i = alpm_list_next(i)) {
_alpm_sync_free(i->data);
+ i->data = NULL;
}
FREELIST(trans->packages);
} else {
@@ -92,7 +93,6 @@ void _alpm_trans_free(pmtrans_t *trans)
FREELIST(trans->skip_remove);
FREE(trans);
- trans = NULL;
}
int _alpm_trans_init(pmtrans_t *trans, pmtranstype_t type, pmtransflag_t flags,