[pacman-dev] [PATCH] libalpm: avoid double free() in trans_free()
vmiklos at frugalware.org
Sun Jan 1 16:33:00 EST 2006
On Sun, Jan 01, 2006 at 02:01:03PM +0100, VMiklos <vmiklos at frugalware.org> wrote:
> On Sat, Dec 31, 2005 at 06:32:36PM +0100, Aurelien Foret <aurelien at archlinux.org> wrote:
> > Basically, trans->pacakges is really a list of packages, and not a list
> > of pointers to packages.
> > As a consequence, it must be freed by using FREELISTPKGS.
> > See add_loadtarget() or remove_loadtarget(): data are built from scratch
> > and copied into that list.
> hm, yes
no, i was wrong. sortbydeps() will only copy the pointers, what's why we
only need FREELISTPTR() there
udv / greetings,
Developer of Frugalware Linux, to make things frugal - http://frugalware.org
More information about the pacman-dev