Ver código fonte

Put dirlist_free_all back in routerlist_free_all for unit tests

Nick Mathewson 5 anos atrás
pai
commit
63219eda8a
1 arquivos alterados com 1 adições e 0 exclusões
  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);