mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
r12544@catbus: nickm | 2007-04-29 21:08:58 -0400
Fix an assertion when we call tor_free_all before calling do_main_loop(). Discovered by weasel. svn:r10046
This commit is contained in:
+6
-3
@@ -1495,9 +1495,12 @@ init_cell_pool(void)
|
||||
void
|
||||
free_cell_pool(void)
|
||||
{
|
||||
tor_assert(cell_pool);
|
||||
mp_pool_destroy(cell_pool);
|
||||
cell_pool = NULL;
|
||||
/* Maybe we haven't called init_cell_pool yet; need to check for it. */
|
||||
if (cell_pool) {
|
||||
tor_assert(cell_pool);
|
||||
mp_pool_destroy(cell_pool);
|
||||
cell_pool = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/** Free excess storage in cell pool. */
|
||||
|
||||
Reference in New Issue
Block a user