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: v3.9~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edd4816065d60894a40fd9d6304b3f19483b2b80;p=thirdparty%2Ftvheadend.git - Fix memory leak - In case that img is already in cache, img->url was not free'd --- 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; }