stop a big memory leak: we were leaking the whole contents

of cached-routers.new every time we read it.


svn:r8236
This commit is contained in:
Roger Dingledine 2006-08-27 02:12:12 +00:00
parent 9f5856c03d
commit 94afe807ac

View File

@ -358,6 +358,7 @@ router_reload_router_list(void)
stat(fname, &st); stat(fname, &st);
router_load_routers_from_string(contents, router_load_routers_from_string(contents,
SAVED_IN_JOURNAL, NULL); SAVED_IN_JOURNAL, NULL);
tor_free(contents);
} }
tor_free(fname); tor_free(fname);