mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
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:
parent
9f5856c03d
commit
94afe807ac
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user