[pacman-dev] [patch] conflict.c memleak fix

Xavier shiningxc at gmail.com
Sat Aug 4 11:28:54 EDT 2007


On Thu, Aug 02, 2007 at 09:19:28PM +0200, Nagy Gabor wrote:
> Hi!
> This is just a small memleak fix.
> Bye, ngaba

I guess that was a professional memleak?

> diff --git a/lib/libalpm/conflict.c b/lib/libalpm/conflict.c
> index 1baa0c2..feb4275 100644
> --- a/lib/libalpm/conflict.c
> +++ b/lib/libalpm/conflict.c
> @@ -155,6 +155,7 @@ alpm_list_t *_alpm_checkconflicts(pmdb_t *db, alpm_list_t *packages)
>  	_alpm_log(PM_LOG_DEBUG, "check targets vs targets");
>  	check_conflict(packages, packages, &baddeps, 0);
>  
> +	alpm_list_free(dblist);
>  	return(baddeps);
>  }
>  

Thanks, applied that too.

PS : I don't have access to my git server at home, since I'm in holiday, but
I suppose it doesn't matter since Dan is not there for merging things :)




More information about the pacman-dev mailing list