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

Don't call Libevent's event_base_free() on NULL.

It doesn't crash, but it produces a warning.

Fixes bug 24933; bugfix on 322abc03. Bug
not in any released Tor.
parent c8a27d89
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
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