Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.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/package.c
parent2322909703eb2f30ac0ef7273420f13c5f61410b (diff)
libalpm: use FREELIST when possible
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r--lib/libalpm/package.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index 75dabd84..f96b7914 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -1022,8 +1022,7 @@ pmpkg_t *_alpm_pkg_load(const char *pkgfile, unsigned short full)
_alpm_log(PM_LOG_ERROR, _("missing package filelist in %s, generating one\n"), pkgfile);
info->files = all_files;
} else {
- alpm_list_free_inner(all_files, free);
- alpm_list_free(all_files);
+ FREELIST(all_files);
}
/* this is IMPORTANT - "checking for conflicts" requires a sorted list, so we