diff options
author | Roger Dingledine <arma@torproject.org> | 2008-10-12 03:21:05 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-10-12 03:21:05 +0000 |
commit | c9bddb24b2cad24e5af5245e112ed1216477baa7 (patch) | |
tree | 1b414ed828596a6c2a82aa300b2b088c5e2997b2 | |
parent | 95aace5aae787b54a2eb9e29b0993d31b45e3ca9 (diff) | |
download | tor-c9bddb24b2cad24e5af5245e112ed1216477baa7.tar.gz tor-c9bddb24b2cad24e5af5245e112ed1216477baa7.zip |
another coverity-found memory leak
svn:r17062
-rw-r--r-- | src/or/circuitbuild.c | 8 |
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(); |