mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[download] memory leaks
This commit is contained in:
parent
24325a5714
commit
fd5e164b8f
@ -80,6 +80,7 @@ clear_uri_tempfiles(void)
|
|||||||
if (item->value) {
|
if (item->value) {
|
||||||
mem_free_set(&item->value, NULL);
|
mem_free_set(&item->value, NULL);
|
||||||
}
|
}
|
||||||
|
mem_free_set(&item->key, NULL);
|
||||||
}
|
}
|
||||||
free_hash(&uri_tempfiles);
|
free_hash(&uri_tempfiles);
|
||||||
}
|
}
|
||||||
|
@ -67,6 +67,7 @@ clean_temporary_files(void)
|
|||||||
foreach_hash_item (item, *temporary_files, i) {
|
foreach_hash_item (item, *temporary_files, i) {
|
||||||
if (item->key) {
|
if (item->key) {
|
||||||
unlink(item->key);
|
unlink(item->key);
|
||||||
|
mem_free_set(&item->key, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free_hash(&temporary_files);
|
free_hash(&temporary_files);
|
||||||
|
Loading…
Reference in New Issue
Block a user