summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 a606d57e26..947e908981 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -3075,6 +3075,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 ROUTER_WAS_NOT_NEW;
}