mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
r15723@tombo: nickm | 2007-12-26 19:25:51 -0500
Actually trim freelists. svn:r12991
This commit is contained in:
parent
3a5bee150f
commit
1503021ee5
@ -247,8 +247,9 @@ buf_shrink_freelists(int free_all)
|
||||
--n_to_free;
|
||||
}
|
||||
tor_assert(!n_to_free);
|
||||
freelists[i].lowest_length = freelists[i].cur_length = n_to_skip;
|
||||
freelists[i].cur_length = n_to_skip;
|
||||
}
|
||||
freelists[i].lowest_length = freelists[i].cur_length;
|
||||
assert_freelist_ok(&freelists[i]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user