[tor-commits] [tor/master] Put dirlist_free_all back in routerlist_free_all for unit tests

nickm at torproject.org nickm at torproject.org
Fri Sep 21 12:10:43 UTC 2018


commit 63219eda8aeb9aecf0e302179eb47a16ff26f6e9
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Sep 21 08:10:39 2018 -0400

    Put dirlist_free_all back in routerlist_free_all for unit tests
---
 src/feature/nodelist/routerlist.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/feature/nodelist/routerlist.c b/src/feature/nodelist/routerlist.c
index 93597f89b..bfa1c85c0 100644
--- a/src/feature/nodelist/routerlist.c
+++ b/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);



More information about the tor-commits mailing list