Stop using event_base_once().

This function leaks memory when the event_base is freed before the
event itself fires.  That's not harmful, but it's annoying when
trying to debug other memory leaks.

Fixes bug 24584; bugfix on 0.2.8.1-alpha.
This commit is contained in:
Nick Mathewson
2017-12-11 12:21:00 -05:00
parent ea929e8456
commit f205dabf7a
2 changed files with 21 additions and 6 deletions
+5
View File
@@ -0,0 +1,5 @@
o Minor bugfixes (memory cleanup):
- Avoid possible at-exit memory leaks related to use of Libevent's
event_base_once() function. (This function tends to leak memory
if the event_base is closed before the event fires.) Fixes bug 24584;
bugfix on 0.2.8.1-alpha.