From b1a588855380d021b536f42b70c9815b83eca430 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 13 Aug 2010 17:30:50 -0400 Subject: fix a memory leak introduced by df1ef2f0f0856af --- src/or/networkstatus.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/or') 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); -- cgit v1.2.3-54-g00ecf