summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-02-10 23:18:39 +0000
committerNick Mathewson <nickm@torproject.org>2005-02-10 23:18:39 +0000
commit60f234f42b63ed6a5208c70bbc4c32e532cc903d (patch)
treeaaa4aa5ea631dafadb38afd28c3030a4b54f20c7 /src/or/directory.c
parentdf41b20e90c5f817b0c8c7ba913cdadea3c671fe (diff)
downloadtor-60f234f42b63ed6a5208c70bbc4c32e532cc903d.tar.gz
tor-60f234f42b63ed6a5208c70bbc4c32e532cc903d.zip
Add more functions to free things to help dmalloc allong.
svn:r3613
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 6cb6b64c93..e3087a9cc5 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -88,6 +88,13 @@ parse_dir_policy(void)
}
}
+void
+free_dir_policy(void)
+{
+ addr_policy_free(dir_policy);
+ dir_policy = NULL;
+}
+
/** Return 1 if <b>addr</b> is permitted to connect to our dir port,
* based on <b>dir_policy</b>. Else return 0.
*/