Skip to content
Snippets Groups Projects
Commit ba9b0319 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

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.
parent 24a2352d
No related branches found
No related tags found
No related merge requests found
......@@ -157,10 +157,11 @@ tor_free_all(int postfork)
if (!postfork) {
release_lockfile();
}
tor_libevent_free_all();
subsystems_shutdown();
tor_libevent_free_all();
/* Stuff in util.c and address.c*/
if (!postfork) {
esc_router_info(NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment