aboutsummaryrefslogtreecommitdiff
path: root/src/or/routers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/routers.c')
-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 81a7cf34b..0861ca4cc 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.");