pacman: correctly free lists

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
morganamilo 2019-06-14 02:50:10 +01:00 committed by Allan McRae
parent 4ca5f5949b
commit 686a9ee8e7

View file

@ -105,7 +105,8 @@ static int check_db_missing_deps(alpm_list_t *pkglist)
free(depstring); free(depstring);
ret++; ret++;
} }
FREELIST(data); alpm_list_free_inner(data, (alpm_list_fn_free)alpm_depmissing_free);
alpm_list_free(data);
return ret; return ret;
} }
@ -159,7 +160,8 @@ static int check_db_local_package_conflicts(alpm_list_t *pkglist)
conflict->package1, conflict->package2); conflict->package1, conflict->package2);
ret++; ret++;
} }
FREELIST(data); alpm_list_free_inner(data, (alpm_list_fn_free)alpm_conflict_free);
alpm_list_free(data);
return ret; return ret;
} }