aboutsummaryrefslogtreecommitdiff
path: root/src/or/scheduler_kist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-10-17 13:40:31 -0400
committerNick Mathewson <nickm@torproject.org>2017-10-17 13:40:31 -0400
commit8652f3e9e82f5f5565eeb2d6e7ee6fa449b26042 (patch)
tree261c8c431e2dba1b42b8b9d2534a8a98cf5c34ea /src/or/scheduler_kist.c
parent22139c0b285e32639b35d671bef12277d3441791 (diff)
downloadtor-8652f3e9e82f5f5565eeb2d6e7ee6fa449b26042.tar.gz
tor-8652f3e9e82f5f5565eeb2d6e7ee6fa449b26042.zip
Fix memory leak when freeing socket_table in KIST.
Diffstat (limited to 'src/or/scheduler_kist.c')
-rw-r--r--src/or/scheduler_kist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/scheduler_kist.c b/src/or/scheduler_kist.c
index d269fb49b8..03aa9c45bd 100644
--- 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 *