diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-10-15 17:14:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-10-15 17:14:04 -0400 |
commit | 441d90a8f9ed259dc2d84ffc52eeab1b934fd848 (patch) | |
tree | d6d5cbc78f33f199d293e826b6a66b5dcb971779 /src | |
parent | a7cf788740f9cb8befc8c46d175dbc23a4aaa6ea (diff) | |
download | tor-441d90a8f9ed259dc2d84ffc52eeab1b934fd848.tar.gz tor-441d90a8f9ed259dc2d84ffc52eeab1b934fd848.zip |
Fix one-time memory leak when initializing libevent. Spotted by Sebastian
Diffstat (limited to 'src')
-rw-r--r-- | src/common/compat_libevent.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c index a524c98318..d3b9eb3afa 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(); |