From: Benny Morgan Date: Sun, 30 Jun 2013 19:31:49 +0000 (+0200) Subject: - Fix memory leak - In case that img is already in cache, img->url was not free'd X-Git-Tag: 3.4patch1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d0e7ca97f8a2e16f7c01c249a457a2a569e5743;p=thirdparty%2Ftvheadend.git - Fix memory leak - In case that img is already in cache, img->url was not free'd (cherry picked from commit edd4816065d60894a40fd9d6304b3f19483b2b80) --- diff --git a/src/imagecache.c b/src/imagecache.c index 44bd6506d..d586129f9 100644 --- a/src/imagecache.c +++ b/src/imagecache.c @@ -145,6 +145,7 @@ void imagecache_init ( void ) if (i) { hts_settings_remove("imagecache/meta/%d", id); hts_settings_remove("imagecache/data/%d", id); + free((void*)img->url); free(img); continue; }