summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-09-25 16:06:39 +0000
committerNick Mathewson <nickm@torproject.org>2006-09-25 16:06:39 +0000
commit4fe76e7b6b257cd5a1fcd95789075efe493373b0 (patch)
tree9f272a94466a99159e9faa2eea9d0bbc0e999373 /src/or
parent0f8491a254f799b7d850e533827a19ac43eac5e2 (diff)
downloadtor-4fe76e7b6b257cd5a1fcd95789075efe493373b0.tar.gz
tor-4fe76e7b6b257cd5a1fcd95789075efe493373b0.zip
Free named_server_map on shutdown.
svn:r8500
Diffstat (limited to 'src/or')
-rw-r--r--src/or/routerlist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 71cc367af1..7f0dc577d6 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -1505,6 +1505,9 @@ routerlist_free_all(void)
smartlist_free(routerstatus_list);
routerstatus_list = NULL;
}
+ if (named_server_map) {
+ strmap_free(named_server_map, _tor_free);
+ }
}
/** Free all storage held by the routerstatus object <b>rs</b>. */