summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-12-16 08:20:10 +0000
committerRoger Dingledine <arma@torproject.org>2007-12-16 08:20:10 +0000
commit98a56a386df73290e2f97d252d219d95bffa5099 (patch)
tree91b5c896f2947479710a9f9993cca21cab2decb4 /src/or/networkstatus.c
parent71c84abdff1f8366ba5f3fad6496dd1735273222 (diff)
downloadtor-98a56a386df73290e2f97d252d219d95bffa5099.tar.gz
tor-98a56a386df73290e2f97d252d219d95bffa5099.zip
our unit tests leak memory like a sieve.
fix two actual memory leaks found while cleaning up a bit. svn:r12829
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r--src/or/networkstatus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index c59baa13f7..959e137dc8 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -246,6 +246,10 @@ networkstatus_vote_free(networkstatus_vote_t *ns)
SMARTLIST_FOREACH(ns->known_flags, char *, c, tor_free(c));
smartlist_free(ns->known_flags);
}
+ if (ns->supported_methods) {
+ SMARTLIST_FOREACH(ns->supported_methods, char *, c, tor_free(c));
+ smartlist_free(ns->supported_methods);
+ }
if (ns->voters) {
SMARTLIST_FOREACH(ns->voters, networkstatus_voter_info_t *, voter,
{