summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/add.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-17 04:15:49 +0100
committerDan McGee <dan@archlinux.org>2007-11-17 04:15:49 +0100
commitcfcc550e2ac55616c81d2347c2467aec9d56d25e (patch)
tree5ecfa82e875fc9fb3824eef748f7d59bc59f0784 /lib/libalpm/add.c
parent2322909703eb2f30ac0ef7273420f13c5f61410b (diff)
downloadpacman-cfcc550e2ac55616c81d2347c2467aec9d56d25e.tar.gz
pacman-cfcc550e2ac55616c81d2347c2467aec9d56d25e.tar.xz
libalpm: use FREELIST when possible
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r--lib/libalpm/add.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index adfa8f0c..ea661dc4 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -295,8 +295,7 @@ static int upgrade_remove(pmpkg_t *oldpkg, pmpkg_t *newpkg, pmtrans_t *trans, pm
tr = NULL;
/* restore our "NoUpgrade" list to previous state */
- alpm_list_free_inner(handle->noupgrade, free);
- alpm_list_free(handle->noupgrade);
+ FREELIST(handle->noupgrade);
handle->noupgrade = old_noupgrade;
if(ret == -1) {