From cfcc550e2ac55616c81d2347c2467aec9d56d25e Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 16 Nov 2007 21:15:49 -0600 Subject: libalpm: use FREELIST when possible Signed-off-by: Dan McGee --- lib/libalpm/conflict.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/libalpm/conflict.c') diff --git a/lib/libalpm/conflict.c b/lib/libalpm/conflict.c index 754d5a91..91fd794d 100644 --- a/lib/libalpm/conflict.c +++ b/lib/libalpm/conflict.c @@ -307,8 +307,7 @@ alpm_list_t *_alpm_db_find_conflicts(pmdb_t *db, pmtrans_t *trans, char *root) conflicts = add_fileconflict(conflicts, PM_CONFLICT_TYPE_TARGET, path, alpm_pkg_get_name(p1), alpm_pkg_get_name(p2)); } - alpm_list_free_inner(tmpfiles, &free); - alpm_list_free(tmpfiles); + FREELIST(tmpfiles); } } @@ -413,8 +412,7 @@ alpm_list_t *_alpm_db_find_conflicts(pmdb_t *db, pmtrans_t *trans, char *root) } } } - alpm_list_free_inner(tmpfiles, &free); - alpm_list_free(tmpfiles); + FREELIST(tmpfiles); } return(conflicts); -- cgit v1.2.3-24-g4f1b