- Fix memory leak - In case that img is already in cache, img->url was not free'd
This commit is contained in:
parent
21a622986f
commit
edd4816065
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue