mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix one-time memory leak when initializing libevent. Spotted by Sebastian
This commit is contained in:
parent
a7cf788740
commit
441d90a8f9
@ -187,6 +187,8 @@ tor_libevent_initialize(tor_libevent_cfg *torcfg)
|
||||
#endif
|
||||
|
||||
the_event_base = event_base_new_with_config(cfg);
|
||||
|
||||
event_config_free(cfg);
|
||||
}
|
||||
#else
|
||||
the_event_base = event_init();
|
||||
|
Loading…
Reference in New Issue
Block a user