summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2002-12-03 05:12:30 +0000
committerRoger Dingledine <arma@torproject.org>2002-12-03 05:12:30 +0000
commit8f2beefca45d929134b1e4a64151430cd21de5f5 (patch)
tree444db106ecc30e1720989bc9d5e69d422e7195e6
parentac10bb6319fed0abb61ed946dae4efe4a9385f81 (diff)
downloadtor-8f2beefca45d929134b1e4a64151430cd21de5f5.tar.gz
tor-8f2beefca45d929134b1e4a64151430cd21de5f5.zip
was leaking 28 bytes every 100 minutes
svn:r144
-rw-r--r--src/or/routers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/routers.c b/src/or/routers.c
index 81a7cf34bb..0861ca4ccc 100644
--- a/src/or/routers.c
+++ b/src/or/routers.c
@@ -355,6 +355,8 @@ int router_get_list_from_string(char *s) {
case 1: /* it is me */
if(!my_routerinfo) /* save it, so we can use it for directories */
my_routerinfo = router;
+ else
+ routerlist_free(router);
break;
default:
log(LOG_ERR,"router_get_list_from_string(): router_is_me returned error.");