mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Don't call Libevent's event_base_free() on NULL.
It doesn't crash, but it produces a warning.
Fixes bug 24933; bugfix on 322abc030e
. Bug
not in any released Tor.
This commit is contained in:
parent
c8a27d89b2
commit
e7907f15f9
@ -243,6 +243,7 @@ tor_init_libevent_rng(void)
|
||||
void
|
||||
tor_libevent_free_all(void)
|
||||
{
|
||||
if (the_event_base)
|
||||
event_base_free(the_event_base);
|
||||
the_event_base = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user