Shutdown libevent _after_ the subsystems.
commitba9b0319b00692038e5d4aa2eff7cf5d6947e659
authorNick Mathewson <nickm@torproject.org>
Wed, 29 May 2019 15:25:47 +0000 (29 11:25 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 29 May 2019 15:25:47 +0000 (29 11:25 -0400)
treed31dbde879159cb57e9a590db4d83fcba87a65d0
parent24a2352d56d807320c45fcdd8c74435bda4302c2
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.
src/app/main/shutdown.c