]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
- Fix memory leak - In case that img is already in cache, img->url was not free'd
authorBenny Morgan <benny@zuragon.com>
Sun, 30 Jun 2013 19:31:49 +0000 (21:31 +0200)
committerAdam Sutton <dev@adamsutton.me.uk>
Thu, 11 Jul 2013 19:16:02 +0000 (20:16 +0100)
(cherry picked from commit edd4816065d60894a40fd9d6304b3f19483b2b80)

src/imagecache.c

index 44bd6506d5be41886b466a3676b3348737327ddc..d586129f92f26e19d5841774ac8f36f8d425372d 100644 (file)
@@ -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;
       }