aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-10-12 03:21:05 +0000
committerRoger Dingledine <arma@torproject.org>2008-10-12 03:21:05 +0000
commitc9bddb24b2cad24e5af5245e112ed1216477baa7 (patch)
tree1b414ed828596a6c2a82aa300b2b088c5e2997b2 /src/or/circuitbuild.c
parent95aace5aae787b54a2eb9e29b0993d31b45e3ca9 (diff)
downloadtor-c9bddb24b2cad24e5af5245e112ed1216477baa7.tar.gz
tor-c9bddb24b2cad24e5af5245e112ed1216477baa7.zip
another coverity-found memory leak
svn:r17062
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();