aboutsummaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2010-08-13 17:30:50 -0400
committerRoger Dingledine <arma@torproject.org>2010-08-13 17:30:50 -0400
commitb1a588855380d021b536f42b70c9815b83eca430 (patch)
treef79a68950af25ef14d6807a5935e87fdef298710 /src/or/networkstatus.c
parenta1686d867e0a35417e1e65ad0730bcd116edd10f (diff)
downloadtor-b1a588855380d021b536f42b70c9815b83eca430.tar.gz
tor-b1a588855380d021b536f42b70c9815b83eca430.zip
fix a memory leak introduced by df1ef2f0f0856af
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 a9a9c78b89..54b77992cd 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -351,6 +351,10 @@ networkstatus_vote_free(networkstatus_t *ns)
SMARTLIST_FOREACH(ns->known_flags, char *, c, tor_free(c));
smartlist_free(ns->known_flags);
}
+ if (ns->weight_params) {
+ SMARTLIST_FOREACH(ns->weight_params, char *, c, tor_free(c));
+ smartlist_free(ns->weight_params);
+ }
if (ns->net_params) {
SMARTLIST_FOREACH(ns->net_params, char *, c, tor_free(c));
smartlist_free(ns->net_params);