mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Fix memory leak when freeing socket_table in KIST.
This commit is contained in:
parent
22139c0b28
commit
8652f3e9e8
2 changed files with 5 additions and 0 deletions
4
changes/bug23774
Normal file
4
changes/bug23774
Normal file
|
@ -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.
|
|
@ -158,6 +158,7 @@ static void
|
||||||
free_all_socket_info(void)
|
free_all_socket_info(void)
|
||||||
{
|
{
|
||||||
HT_FOREACH_FN(socket_table_s, &socket_table, free_socket_info_by_ent, NULL);
|
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 *
|
static socket_table_ent_t *
|
||||||
|
|
Loading…
Add table
Reference in a new issue