mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user