summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-08-27 02:12:12 +0000
committerRoger Dingledine <arma@torproject.org>2006-08-27 02:12:12 +0000
commit94afe807ac08b646c5a568eb4336da47c68c0c35 (patch)
tree6b9414f2e95545ed7b544d6dc1415e8e6da49768
parent9f5856c03da9f8c1ae381046d6929cdc9d6d3004 (diff)
downloadtor-94afe807ac08b646c5a568eb4336da47c68c0c35.tar.gz
tor-94afe807ac08b646c5a568eb4336da47c68c0c35.zip
stop a big memory leak: we were leaking the whole contents
of cached-routers.new every time we read it. svn:r8236
-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 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);