diff options
author | Roger Dingledine <arma@torproject.org> | 2007-12-16 08:20:10 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-12-16 08:20:10 +0000 |
commit | 98a56a386df73290e2f97d252d219d95bffa5099 (patch) | |
tree | 91b5c896f2947479710a9f9993cca21cab2decb4 /src/or/networkstatus.c | |
parent | 71c84abdff1f8366ba5f3fad6496dd1735273222 (diff) | |
download | tor-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.c | 4 |
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, { |