diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-11-07 13:59:29 +0100 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-11-07 13:59:29 +0100 |
commit | 2e559ba431aa2cf78e3296a85ff090bd7b6b0fe6 (patch) | |
tree | 38d3b54f59b2f786a929e7c69b4096af666c60d2 /lib/libalpm/trans.c | |
parent | b2df466ffd87c46a823fc46c3ca0026f6c9a001e (diff) | |
download | pacman-2e559ba431aa2cf78e3296a85ff090bd7b6b0fe6.tar.gz pacman-2e559ba431aa2cf78e3296a85ff090bd7b6b0fe6.tar.xz |
added a FREESYNC macro to release pointers to pmsyncpkg_t structures
Diffstat (limited to 'lib/libalpm/trans.c')
-rw-r--r-- | lib/libalpm/trans.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index 7a91cb9b..e4ab72bf 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -66,8 +66,7 @@ void trans_free(pmtrans_t *trans) if(trans->type == PM_TRANS_TYPE_SYNC) { PMList *i; for(i = trans->packages; i; i = i->next) { - sync_free(i->data); - i->data = NULL; + FREESYNC(i->data); } FREELIST(trans->packages); FREELIST(trans->skiplist); |