From 94afe807ac08b646c5a568eb4336da47c68c0c35 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 27 Aug 2006 02:12:12 +0000 Subject: [PATCH] stop a big memory leak: we were leaking the whole contents of cached-routers.new every time we read it. svn:r8236 --- src/or/routerlist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 8363bf219f..f41a8019d4 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -358,6 +358,7 @@ router_reload_router_list(void) stat(fname, &st); router_load_routers_from_string(contents, SAVED_IN_JOURNAL, NULL); + tor_free(contents); } tor_free(fname);