mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix a memory leak in rend_services_introduce
This is CID 1256187 ; bug not in any released tor.
This commit is contained in:
@@ -3073,11 +3073,12 @@ rend_services_introduce(void)
|
||||
const or_options_t *options = get_options();
|
||||
/* List of nodes we need to _exclude_ when choosing a new node to establish
|
||||
* an intro point to. */
|
||||
smartlist_t *exclude_nodes = smartlist_new();
|
||||
smartlist_t *exclude_nodes;
|
||||
|
||||
if (!have_completed_a_circuit())
|
||||
return;
|
||||
|
||||
exclude_nodes = smartlist_new();
|
||||
now = time(NULL);
|
||||
|
||||
for (i=0; i < smartlist_len(rend_service_list); ++i) {
|
||||
|
||||
Reference in New Issue
Block a user