- Fix memory leak - In case that img is already in cache, img->url was not free'd

This commit is contained in:
Benny Morgan 2013-06-30 21:31:49 +02:00
parent 21a622986f
commit edd4816065

View 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;
}