[pacman-dev] [PATCH] free makedepends/checkdepends when freeing packages

Allan McRae allan at archlinux.org
Thu Jun 20 04:46:09 UTC 2019


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


More information about the pacman-dev mailing list