summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-02-15 19:08:32 +0100
committerAllan McRae <allan@archlinux.org>2013-02-24 04:11:54 +0100
commit0bbc406ee8773ed646393cee175280c33fea8dff (patch)
treeaa6fdc6206ab9873399ef7d1eca67d3316695158 /lib/libalpm
parent8803ae3b4d5d90249243b664b02695f7b106b02f (diff)
downloadpacman-0bbc406ee8773ed646393cee175280c33fea8dff.tar.gz
pacman-0bbc406ee8773ed646393cee175280c33fea8dff.tar.xz
use alpm_list_free on filelist intersection
alpm_filelist_intersection returns a list of pointers to internal file_t struct's, so only the list itself should be freed. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/conflict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/conflict.c b/lib/libalpm/conflict.c
index 96f2109b..1aa653fc 100644
--- a/lib/libalpm/conflict.c
+++ b/lib/libalpm/conflict.c
@@ -453,7 +453,7 @@ alpm_list_t *_alpm_db_find_fileconflicts(alpm_handle_t *handle,
conflicts = add_fileconflict(handle, conflicts, path, p1, p2);
if(handle->pm_errno == ALPM_ERR_MEMORY) {
FREELIST(conflicts);
- FREELIST(common_files);
+ alpm_list_free(common_files);
return NULL;
}
}