]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
another coverity-found memory leak
authorRoger Dingledine <arma@torproject.org>
Sun, 12 Oct 2008 03:21:05 +0000 (03:21 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 12 Oct 2008 03:21:05 +0000 (03:21 +0000)
svn:r17062

src/or/circuitbuild.c

index ce5419efc3ab73d54a98a4d14b4a01bc9c427bcf..9470f8698601d6a4a24fb84acf01cf59945572da 100644 (file)
@@ -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();