From 0bbc406ee8773ed646393cee175280c33fea8dff Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Fri, 15 Feb 2013 13:08:32 -0500 Subject: 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 Signed-off-by: Allan McRae --- lib/libalpm/conflict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3-70-g09d2