mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
r13872@catbus: nickm | 2007-07-22 18:51:02 -0400
esc_router_info static field should not be cleared postfork, to avoid races. svn:r10906
This commit is contained in:
parent
701fce8e5c
commit
6640fdeeee
@ -1763,7 +1763,6 @@ tor_free_all(int postfork)
|
||||
routerlist_free_all();
|
||||
addressmap_free_all();
|
||||
set_exit_redirects(NULL); /* free the registered exit redirects */
|
||||
esc_router_info(NULL); /* free a static field */
|
||||
dirserv_free_all();
|
||||
rend_service_free_all();
|
||||
rend_cache_free_all();
|
||||
@ -1788,9 +1787,10 @@ tor_free_all(int postfork)
|
||||
smartlist_free(active_linked_connection_lst);
|
||||
tor_free(timeout_event);
|
||||
/* Stuff in util.c */
|
||||
escaped(NULL);
|
||||
esc_router_info(NULL);
|
||||
if (!postfork) {
|
||||
escaped(NULL);
|
||||
esc_router_info(NULL);
|
||||
logs_free_all(); /* free log strings. do this last so logs keep working. */
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user