mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Shutdown libevent _after_ the subsystems.
This is necessary since shutting down libevent frees some pointer that the subsystems want to free themselves. A longer term solution will be to turn the evloop module into a subsystem itself, but for now it is best to do the minimal fix. Fixes bug 30629; bugfix on 0.4.1.1-alpha.
This commit is contained in:
parent
24a2352d56
commit
ba9b0319b0
1 changed files with 2 additions and 1 deletions
|
@ -157,10 +157,11 @@ tor_free_all(int postfork)
|
||||||
if (!postfork) {
|
if (!postfork) {
|
||||||
release_lockfile();
|
release_lockfile();
|
||||||
}
|
}
|
||||||
tor_libevent_free_all();
|
|
||||||
|
|
||||||
subsystems_shutdown();
|
subsystems_shutdown();
|
||||||
|
|
||||||
|
tor_libevent_free_all();
|
||||||
|
|
||||||
/* Stuff in util.c and address.c*/
|
/* Stuff in util.c and address.c*/
|
||||||
if (!postfork) {
|
if (!postfork) {
|
||||||
esc_router_info(NULL);
|
esc_router_info(NULL);
|
||||||
|
|
Loading…
Add table
Reference in a new issue