aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index ce5419efc3..9470f86986 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -2376,9 +2376,11 @@ entry_guards_prepend_from_config(void)
return;
}
- if (options->EntryNodes)
- log_info(LD_CIRC,"Adding configured EntryNodes '%s'.",
- routerset_to_string(options->EntryNodes));
+ if (options->EntryNodes) {
+ char *string = routerset_to_string(options->EntryNodes);
+ log_info(LD_CIRC,"Adding configured EntryNodes '%s'.", string);
+ tor_free(string);
+ }
entry_routers = smartlist_create();
entry_fps = smartlist_create();