[pacman-dev] [PATCH 1/1] dload: free final_pkg_url
From: Christian Hesse <mail@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; } -- 2.1.2
Christian Hesse <list@eworm.de> on Thu, 2014/10/16 13:47:
From: Christian Hesse <mail@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);}
participants (1)
-
Christian Hesse