mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Free some more still-in-use memory at exit
This commit is contained in:
parent
65e85dba1b
commit
3d31771da9
3
changes/bug7029
Normal file
3
changes/bug7029
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
o Minor bugfixes (code cleanliness):
|
||||||
|
- Free some more still-in-use memory at exit, to make hunting for
|
||||||
|
memory leaks easier. Resolves bug 7029.
|
@ -5865,5 +5865,6 @@ entry_guards_free_all(void)
|
|||||||
clear_bridge_list();
|
clear_bridge_list();
|
||||||
smartlist_free(bridge_list);
|
smartlist_free(bridge_list);
|
||||||
bridge_list = NULL;
|
bridge_list = NULL;
|
||||||
|
circuit_build_times_free_timeouts(&circ_times);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -673,6 +673,9 @@ config_free_all(void)
|
|||||||
tor_free(torrc_defaults_fname);
|
tor_free(torrc_defaults_fname);
|
||||||
tor_free(the_tor_version);
|
tor_free(the_tor_version);
|
||||||
tor_free(global_dirfrontpagecontents);
|
tor_free(global_dirfrontpagecontents);
|
||||||
|
|
||||||
|
tor_free(the_short_tor_version);
|
||||||
|
tor_free(the_tor_version);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Make <b>address</b> -- a piece of information related to our operation as
|
/** Make <b>address</b> -- a piece of information related to our operation as
|
||||||
|
@ -4289,6 +4289,9 @@ connection_free_all(void)
|
|||||||
outgoing_addrs = NULL;
|
outgoing_addrs = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tor_free(last_interface_ipv4);
|
||||||
|
tor_free(last_interface_ipv6);
|
||||||
|
|
||||||
#ifdef USE_BUFFEREVENTS
|
#ifdef USE_BUFFEREVENTS
|
||||||
if (global_rate_limit)
|
if (global_rate_limit)
|
||||||
bufferevent_rate_limit_group_free(global_rate_limit);
|
bufferevent_rate_limit_group_free(global_rate_limit);
|
||||||
|
@ -2477,6 +2477,10 @@ tor_free_all(int postfork)
|
|||||||
smartlist_free(closeable_connection_lst);
|
smartlist_free(closeable_connection_lst);
|
||||||
smartlist_free(active_linked_connection_lst);
|
smartlist_free(active_linked_connection_lst);
|
||||||
periodic_timer_free(second_timer);
|
periodic_timer_free(second_timer);
|
||||||
|
#ifndef USE_BUFFEREVENTS
|
||||||
|
periodic_timer_free(refill_timer);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!postfork) {
|
if (!postfork) {
|
||||||
release_lockfile();
|
release_lockfile();
|
||||||
}
|
}
|
||||||
|
@ -3003,6 +3003,8 @@ rep_hist_free_all(void)
|
|||||||
digestmap_free(history_map, free_or_history);
|
digestmap_free(history_map, free_or_history);
|
||||||
tor_free(read_array);
|
tor_free(read_array);
|
||||||
tor_free(write_array);
|
tor_free(write_array);
|
||||||
|
tor_free(dir_read_array);
|
||||||
|
tor_free(dir_write_array);
|
||||||
tor_free(last_stability_doc);
|
tor_free(last_stability_doc);
|
||||||
tor_free(exit_bytes_read);
|
tor_free(exit_bytes_read);
|
||||||
tor_free(exit_bytes_written);
|
tor_free(exit_bytes_written);
|
||||||
|
Loading…
Reference in New Issue
Block a user