Put dirlist_free_all back in routerlist_free_all for unit tests

This commit is contained in:
Nick Mathewson 2018-09-21 08:10:39 -04:00
parent 1a85ac8c2d
commit 63219eda8a

View File

@ -1424,6 +1424,7 @@ routerlist_free_all(void)
{
routerlist_free(routerlist);
routerlist = NULL;
dirlist_free_all();
if (warned_nicknames) {
SMARTLIST_FOREACH(warned_nicknames, char *, cp, tor_free(cp));
smartlist_free(warned_nicknames);