From 95c03b29de3f6e8c67c7638a9de16ddaa4731948 Mon Sep 17 00:00:00 2001 From: cypherpunks Date: Tue, 1 Dec 2015 13:34:31 +0100 Subject: Fix memory leak by circuit marked for close list This commit fixes a memory leak introduced by commit 8b4e5b7ee902fb7fa07767410a18433d752c7aef. --- src/or/circuitlist.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/or/circuitlist.c') diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index c4992d47ff..15b8748158 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -911,6 +911,9 @@ circuit_free_all(void) smartlist_free(circuits_pending_chans); circuits_pending_chans = NULL; + smartlist_free(circuits_pending_close); + circuits_pending_close = NULL; + { chan_circid_circuit_map_t **elt, **next, *c; for (elt = HT_START(chan_circid_map, &chan_circid_map); -- cgit v1.2.3-54-g00ecf