Browse Source

Put dirlist_free_all back in routerlist_free_all for unit tests

Nick Mathewson 5 years ago
parent
commit
63219eda8a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/feature/nodelist/routerlist.c

+ 1 - 0
src/feature/nodelist/routerlist.c

@@ -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);