[pacman-dev] [PATCH 1/1] dload: free final_pkg_url

Christian Hesse list at eworm.de
Thu Oct 16 13:11:43 UTC 2014


Christian Hesse <list at eworm.de> on Thu, 2014/10/16 13:47:
> From: Christian Hesse <mail at eworm.de>
> 
> ---
>  lib/libalpm/dload.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
> index 1f8070c..6b803f2 100644
> --- a/lib/libalpm/dload.c
> +++ b/lib/libalpm/dload.c
> @@ -737,6 +737,7 @@ char SYMEXPORT *alpm_fetch_pkgurl(alpm_handle_t
> *handle, const char *url) filepath = _alpm_filecache_find(handle,
> final_file); }
>  	free(final_file);
> +	free(final_pkg_url);
>  
>  	return filepath;
>  }

Oh, just Dave got my response... This one is wrong (in same way as v2 and
v3 of be_sync patch were wrong). Actually we do not allocate memory.
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Chris           get my mail address:    */=0;b=c[a++];)
putchar(b-1/(/*               gcc -o sig sig.c && ./sig    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20141016/279e7a89/attachment.bin>


More information about the pacman-dev mailing list