mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Merge branch 'bug23139' into maint-0.3.1
This commit is contained in:
commit
a47b8fcf92
3
changes/bug23139
Normal file
3
changes/bug23139
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
o Minor bugfixes (directory cache):
|
||||||
|
- Fix a memory leak in the code that recovers space in the consensus
|
||||||
|
directory cache. Fixes bug 23139; bugfix on 0.3.1.1-alpha.
|
@ -1156,6 +1156,7 @@ consdiffmgr_ensure_space_for_files(int n)
|
|||||||
if (++n_marked >= n_to_remove)
|
if (++n_marked >= n_to_remove)
|
||||||
break;
|
break;
|
||||||
} SMARTLIST_FOREACH_END(ent);
|
} SMARTLIST_FOREACH_END(ent);
|
||||||
|
smartlist_free(objects);
|
||||||
|
|
||||||
consensus_cache_delete_pending(cache, 1);
|
consensus_cache_delete_pending(cache, 1);
|
||||||
if (BUG(n_marked < n_to_remove))
|
if (BUG(n_marked < n_to_remove))
|
||||||
|
Loading…
Reference in New Issue
Block a user