index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-04-26 20:11:30 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-04-27 14:53:01 -0400 |
commit | ec7d6955b821c51a28efce31268c9c23cb1b5928 (patch) | |
tree | 2845c5169b4bb0303137e31fa18ae9ac8fbc7404 /lib/libalpm/trans.c | |
parent | db9e10f14215ab6453cd663a62cae5bdfac3d61b (diff) |
-rw-r--r-- | lib/libalpm/trans.c | 3 |
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index 27e22bc6..a101be4c 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -81,7 +81,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) { - FREESYNC(i->data); + _alpm_sync_free(i->data); } FREELIST(trans->packages); } else { @@ -92,6 +92,7 @@ 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, |