[pacman-dev] [PATCH 2/3] alpm_list : add new alpm_list_diff_sorted function
Xavier
shiningxc at gmail.com
Sun Oct 11 13:23:05 EDT 2009
On Sun, Oct 11, 2009 at 3:42 PM, Xavier Chantry <shiningxc at gmail.com> wrote:
> +
> + left = alpm_list_copy(lhs);
> + left = alpm_list_msort(left, alpm_list_count(left), fn);
> + right = alpm_list_copy(rhs);
> + right = alpm_list_msort(right, alpm_list_count(right), fn);
> +
> + alpm_list_diff_sorted(left, right, fn, &ret, NULL);
>
> return(ret);
> }
Oops, I forgot to free left and right here. Thanks Dan :)
Fixed on my working branch.
More information about the pacman-dev
mailing list