From c9bddb24b2cad24e5af5245e112ed1216477baa7 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 12 Oct 2008 03:21:05 +0000 Subject: another coverity-found memory leak svn:r17062 --- src/or/circuitbuild.c | 8 +++++--- 1 file 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(); -- cgit v1.2.3-54-g00ecf