r15723@tombo: nickm | 2007-12-26 19:25:51 -0500

Actually trim freelists.


svn:r12991
This commit is contained in:
Nick Mathewson 2007-12-27 00:25:54 +00:00
parent 3a5bee150f
commit 1503021ee5

View File

@ -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]);
}
}