[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix memory leak by circuit marked for close list



commit 95c03b29de3f6e8c67c7638a9de16ddaa4731948
Author: cypherpunks <cypherpunks@xxxxxxxxxxxxxx>
Date:   Tue Dec 1 13:34:31 2015 +0100

    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(+)

diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index c4992d4..15b8748 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);

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits