diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-11-27 23:24:03 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-11-27 23:24:03 -0500 |
commit | 0bfadbf4b91347eb29c4e7d1a5ccfe2f9c7fd021 (patch) | |
tree | 3eef50c2cc0d0bcbc70379d01e2376633c6e2206 /src/or/rendservice.c | |
parent | 49976fabc4457713347fe6d0c8e16939de852393 (diff) | |
download | tor-0bfadbf4b91347eb29c4e7d1a5ccfe2f9c7fd021.tar.gz tor-0bfadbf4b91347eb29c4e7d1a5ccfe2f9c7fd021.zip |
Fix a memory leak in rend_services_introduce
This is CID 1256187 ; bug not in any released tor.
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index ead9f3fe66..26e5659123 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -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) { |