Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormorganamilo <morganamilo@gmail.com>2019-06-14 02:50:10 +0100
committerAllan McRae <allan@archlinux.org>2019-06-20 16:56:57 +1000
commit686a9ee8e7775fc8d701e0de8dde06a3b39df8e6 (patch)
tree5948fd3da05e9ddf6c3b84b663c1ead7f6eb3e24 /src
parent4ca5f5949b42f76867f11eec0a5379ed3eb531d2 (diff)
pacman: correctly free lists
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/database.c6
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;
}