]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix memory leak by circuit marked for close list
authorcypherpunks <cypherpunks@torproject.org>
Tue, 1 Dec 2015 12:34:31 +0000 (13:34 +0100)
committerNick Mathewson <nickm@torproject.org>
Tue, 8 Dec 2015 13:52:10 +0000 (08:52 -0500)
This commit fixes a memory leak introduced by commit
8b4e5b7ee902fb7fa07767410a18433d752c7aef.

src/or/circuitlist.c

index c4992d47ff144c42ff799401075e98db8fc3ad91..15b8748158c9acc990aa8ac7b6735aa8e1df03d6 100644 (file)
@@ -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);