Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/add.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-16 21:15:49 -0600
committerDan McGee <dan@archlinux.org>2007-11-16 21:15:49 -0600
commitcfcc550e2ac55616c81d2347c2467aec9d56d25e (patch)
tree5ecfa82e875fc9fb3824eef748f7d59bc59f0784 /lib/libalpm/add.c
parent2322909703eb2f30ac0ef7273420f13c5f61410b (diff)
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) {