diff options
author | Dave Reisner <dreisner@archlinux.org> | 2019-06-17 13:42:51 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-06-20 06:45:58 +0200 |
commit | 1a343d378a9e0c4ea143db9e796cf7262eb0d4cb (patch) | |
tree | b0de8e5638e25ccac8ec779646f4c5f2110dd94b | |
parent | 80321b21ae0f71d3fab758434506aa49f6134ba5 (diff) | |
download | pacman-1a343d378a9e0c4ea143db9e796cf7262eb0d4cb.tar.gz pacman-1a343d378a9e0c4ea143db9e796cf7262eb0d4cb.tar.xz |
free makedepends/checkdepends when freeing packages
Credit to Andrew for identifying source of the leak.
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r-- | lib/libalpm/package.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 94716666..dde32175 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -683,6 +683,8 @@ void _alpm_pkg_free(alpm_pkg_t *pkg) alpm_list_free(pkg->backup); free_deplist(pkg->depends); free_deplist(pkg->optdepends); + free_deplist(pkg->checkdepends); + free_deplist(pkg->makedepends); free_deplist(pkg->conflicts); free_deplist(pkg->provides); alpm_list_free(pkg->removes); |