- Fix memory leak - In case that img is already in cache, img->url was not free'd
(cherry picked from commit edd4816065
)
This commit is contained in:
parent
df70d4d62f
commit
1d0e7ca97f
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