[pacman-dev] [PATCH] free makedepends/checkdepends when freeing packages
Credit to Andrew for identifying source of the leak. --- lib/libalpm/package.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.22.0
On 17/6/19 9:42 pm, Dave Reisner wrote:
Credit to Andrew for identifying source of the leak. --- lib/libalpm/package.c | 2 ++ 1 file changed, 2 insertions(+)
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);
Thanks, Allan
participants (2)
-
Allan McRae
-
Dave Reisner