tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 8652f3e9e82f5f5565eeb2d6e7ee6fa449b26042
parent 22139c0b285e32639b35d671bef12277d3441791
Author: Nick Mathewson <nickm@torproject.org>
Date:   Tue, 17 Oct 2017 13:40:31 -0400

Fix memory leak when freeing socket_table in KIST.

Diffstat:
Achanges/bug23774 | 4++++
Msrc/or/scheduler_kist.c | 1+
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/changes/bug23774 b/changes/bug23774 @@ -0,0 +1,4 @@ + o Minor bugfixes (memory leak): + - Fix a minor memory-leak-at-exit in the KIST scheduler. This + bug should have no user-visible impact. Fixes bug 23774; + bugfix on 0.3.2.1-alpha. diff --git a/src/or/scheduler_kist.c b/src/or/scheduler_kist.c @@ -158,6 +158,7 @@ static void free_all_socket_info(void) { HT_FOREACH_FN(socket_table_s, &socket_table, free_socket_info_by_ent, NULL); + HT_CLEAR(socket_table_s, &socket_table); } static socket_table_ent_t *