From 31b771efefe29c6ce9415eaa72e9bcea73a898ca Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 3 Dec 2002 05:12:30 +0000 Subject: [PATCH] was leaking 28 bytes every 100 minutes svn:r144 --- trunk/src/or/routers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trunk/src/or/routers.c b/trunk/src/or/routers.c index 81a7cf34bb..0861ca4ccc 100644 --- a/trunk/src/or/routers.c +++ b/trunk/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.");