diff options
author | morganamilo <morganamilo@gmail.com> | 2019-06-14 03:50:10 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-06-20 08:56:57 +0200 |
commit | 686a9ee8e7775fc8d701e0de8dde06a3b39df8e6 (patch) | |
tree | 5948fd3da05e9ddf6c3b84b663c1ead7f6eb3e24 | |
parent | 4ca5f5949b42f76867f11eec0a5379ed3eb531d2 (diff) | |
download | pacman-686a9ee8e7775fc8d701e0de8dde06a3b39df8e6.tar.gz pacman-686a9ee8e7775fc8d701e0de8dde06a3b39df8e6.tar.xz |
pacman: correctly free lists
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r-- | src/pacman/database.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pacman/database.c b/src/pacman/database.c index f3b890ce..7a792bad 100644 --- a/src/pacman/database.c +++ b/src/pacman/database.c @@ -105,7 +105,8 @@ static int check_db_missing_deps(alpm_list_t *pkglist) free(depstring); ret++; } - FREELIST(data); + alpm_list_free_inner(data, (alpm_list_fn_free)alpm_depmissing_free); + alpm_list_free(data); return ret; } @@ -159,7 +160,8 @@ static int check_db_local_package_conflicts(alpm_list_t *pkglist) conflict->package1, conflict->package2); ret++; } - FREELIST(data); + alpm_list_free_inner(data, (alpm_list_fn_free)alpm_conflict_free); + alpm_list_free(data); return ret; } |