Ticket #17218: 0001-Fix-memory-leak-by-circuit-marked-for-close-list.patch

File 0001-Fix-memory-leak-by-circuit-marked-for-close-list.patch, 843 bytes (added by cypherpunks, 4 years ago)
  • src/or/circuitlist.c

    From de91eb77ea9c143381303d16e996a89827b8d455 Mon Sep 17 00:00:00 2001
    From: cypherpunks <cypherpunks@torproject.org>
    Date: Tue, 1 Dec 2015 13:34:31 +0100
    Subject: [PATCH] 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 b circuit_free_all(void) 
    911911  smartlist_free(circuits_pending_chans);
    912912  circuits_pending_chans = NULL;
    913913
     914  smartlist_free(circuits_pending_close);
     915  circuits_pending_close = NULL;
     916
    914917  {
    915918    chan_circid_circuit_map_t **elt, **next, *c;
    916919    for (elt = HT_START(chan_circid_map, &chan_circid_map);