From 6d8bc12583939f7f4849b4a86599f896db85e2f8 Mon Sep 17 00:00:00 2001 From: juga0 Date: Fri, 29 Jun 2018 13:45:06 +0000 Subject: [PATCH] Free bw_list_headers in networstatus_t --- src/feature/nodelist/networkstatus.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/feature/nodelist/networkstatus.c b/src/feature/nodelist/networkstatus.c index e9d36cbdcb..252e01eb4c 100644 --- a/src/feature/nodelist/networkstatus.c +++ b/src/feature/nodelist/networkstatus.c @@ -385,6 +385,11 @@ networkstatus_vote_free_(networkstatus_t *ns) smartlist_free(ns->routerstatus_list); } + if (ns->bw_file_headers) { + SMARTLIST_FOREACH(ns->bw_file_headers, char *, c, tor_free(c)); + smartlist_free(ns->bw_file_headers); + } + digestmap_free(ns->desc_digest_map, NULL); if (ns->sr_info.commits) {