mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +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,7 +243,8 @@ tor_init_libevent_rng(void)
|
||||
void
|
||||
tor_libevent_free_all(void)
|
||||
{
|
||||
event_base_free(the_event_base);
|
||||
if (the_event_base)
|
||||
event_base_free(the_event_base);
|
||||
the_event_base = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user