1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

[download] memory leaks

This commit is contained in:
Witold Filipczyk 2023-12-28 13:01:01 +01:00
parent 24325a5714
commit fd5e164b8f
2 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,7 @@ clear_uri_tempfiles(void)
if (item->value) {
mem_free_set(&item->value, NULL);
}
mem_free_set(&item->key, NULL);
}
free_hash(&uri_tempfiles);
}

View File

@ -67,6 +67,7 @@ clean_temporary_files(void)
foreach_hash_item (item, *temporary_files, i) {
if (item->key) {
unlink(item->key);
mem_free_set(&item->key, NULL);
}
}
free_hash(&temporary_files);