Fix one-time memory leak when initializing libevent. Spotted by Sebastian

This commit is contained in:
Nick Mathewson 2010-10-15 17:14:04 -04:00
parent a7cf788740
commit 441d90a8f9

View File

@ -187,6 +187,8 @@ tor_libevent_initialize(tor_libevent_cfg *torcfg)
#endif #endif
the_event_base = event_base_new_with_config(cfg); the_event_base = event_base_new_with_config(cfg);
event_config_free(cfg);
} }
#else #else
the_event_base = event_init(); the_event_base = event_init();