]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix memory leak when freeing socket_table in KIST.
authorNick Mathewson <nickm@torproject.org>
Tue, 17 Oct 2017 17:40:31 +0000 (13:40 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 17 Oct 2017 17:40:31 +0000 (13:40 -0400)
changes/bug23774 [new file with mode: 0644]
src/or/scheduler_kist.c

diff --git a/changes/bug23774 b/changes/bug23774
new file mode 100644 (file)
index 0000000..2ea5c01
--- /dev/null
@@ -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.
index d269fb49b80b6786e52af8e1b23fa50aef0b6f9a..03aa9c45bda176ac7c40a63dcdff4394b32a1403 100644 (file)
@@ -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 *