aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 01169d2c58..6aff74084f 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -2867,6 +2867,7 @@ router_add_to_routerlist(routerinfo_t *router, const char **msg,
if (!in_consensus && from_cache &&
router->cache_info.published_on < time(NULL) - OLD_ROUTER_DESC_MAX_AGE) {
*msg = "Router descriptor was really old.";
+ routerinfo_free(router);
return -1;
}