diff options
author | Roger Dingledine <arma@torproject.org> | 2010-08-13 17:30:50 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2010-08-13 17:30:50 -0400 |
commit | b1a588855380d021b536f42b70c9815b83eca430 (patch) | |
tree | f79a68950af25ef14d6807a5935e87fdef298710 /src/or | |
parent | a1686d867e0a35417e1e65ad0730bcd116edd10f (diff) | |
download | tor-b1a588855380d021b536f42b70c9815b83eca430.tar.gz tor-b1a588855380d021b536f42b70c9815b83eca430.zip |
fix a memory leak introduced by df1ef2f0f0856af
Diffstat (limited to 'src/or')
-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 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); |