[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [tor/master] Fix one-time memory leak when initializing libevent. Spotted by Sebastian
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Fri, 15 Oct 2010 17:14:04 -0400
Subject: Fix one-time memory leak when initializing libevent. Spotted by Sebastian
Commit: 441d90a8f9ed259dc2d84ffc52eeab1b934fd848
---
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 a524c98..d3b9eb3 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();
--
1.7.1