diff options
author | Andrea Shepard <andrea@torproject.org> | 2012-10-15 07:56:35 -0700 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2012-10-15 07:56:35 -0700 |
commit | 99057014bae3b7a19ae9cf50cad2063a3c085e14 (patch) | |
tree | 3eaef801ff8fa44ece419f3db9acb11f936cbf87 | |
parent | 4da2864308efd3de7a3dcc857003fa4aea169be6 (diff) | |
download | tor-99057014bae3b7a19ae9cf50cad2063a3c085e14.tar tor-99057014bae3b7a19ae9cf50cad2063a3c085e14.tar.gz |
Add debug logging to channel_listener_free()/channel_listener_force_free()
-rw-r--r-- | src/or/channel.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/channel.c b/src/or/channel.c index 264243126..1a7a988fa 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -848,6 +848,11 @@ channel_listener_free(channel_listener_t *chan_l) { if (!chan_l) return; + log_debug(LD_CHANNEL, + "Freeing channel_listener_t " U64_FORMAT " at %p", + U64_PRINTF_ARG(chan_l->global_identifier), + chan_l); + /* It must be closed or errored */ tor_assert(chan_l->state == CHANNEL_LISTENER_STATE_CLOSED || chan_l->state == CHANNEL_LISTENER_STATE_ERROR); @@ -935,6 +940,11 @@ channel_listener_force_free(channel_listener_t *chan_l) { tor_assert(chan_l); + log_debug(LD_CHANNEL, + "Force-freeing channel_listener_t " U64_FORMAT " at %p", + U64_PRINTF_ARG(chan_l->global_identifier), + chan_l); + /* Call a free method if there is one */ if (chan_l->free) chan_l->free(chan_l); |