aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-10-15 17:14:04 -0400
committerNick Mathewson <nickm@torproject.org>2010-10-15 17:14:04 -0400
commit441d90a8f9ed259dc2d84ffc52eeab1b934fd848 (patch)
treed6d5cbc78f33f199d293e826b6a66b5dcb971779 /src/common/compat_libevent.c
parenta7cf788740f9cb8befc8c46d175dbc23a4aaa6ea (diff)
downloadtor-441d90a8f9ed259dc2d84ffc52eeab1b934fd848.tar
tor-441d90a8f9ed259dc2d84ffc52eeab1b934fd848.tar.gz
Fix one-time memory leak when initializing libevent. Spotted by Sebastian
Diffstat (limited to 'src/common/compat_libevent.c')
-rw-r--r--src/common/compat_libevent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c
index a524c9831..d3b9eb3af 100644
--- a/src/common/compat_libevent.c
+++ b/src/common/compat_libevent.c
@@ -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();