]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
and bust another memory leak
authorRoger Dingledine <arma@torproject.org>
Tue, 7 Dec 2004 08:58:26 +0000 (08:58 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 7 Dec 2004 08:58:26 +0000 (08:58 +0000)
svn:r3105

src/or/circuitbuild.c

index aa101aff6d7f9c9ab2409856e652437daa9559d4..e1ffda4e1b9dc56984f6fb17a27d6300e4c7de7f 100644 (file)
@@ -1000,6 +1000,7 @@ static routerinfo_t *choose_good_exit_server_general(routerlist_t *dir)
       if (router)
         break;
     }
+    SMARTLIST_FOREACH(needed_ports, char *, cp, tor_free(cp));
     smartlist_free(needed_ports);
   }