mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Add debug logging for channel_free() and channel_force_free()
This commit is contained in:
parent
9ef286ec8f
commit
3894ca1508
1 changed files with 8 additions and 0 deletions
|
@ -808,6 +808,10 @@ channel_free(channel_t *chan)
|
|||
/* It must be deregistered */
|
||||
tor_assert(!(chan->registered));
|
||||
|
||||
log_debug(LD_CHANNEL,
|
||||
"Freeing channel " U64_FORMAT " at %p",
|
||||
U64_PRINTF_ARG(chan->global_identifier), chan);
|
||||
|
||||
/*
|
||||
* Get rid of cmux policy before we do anything, so cmux policies don't
|
||||
* see channels in weird half-freed states.
|
||||
|
@ -872,6 +876,10 @@ channel_force_free(channel_t *chan)
|
|||
{
|
||||
tor_assert(chan);
|
||||
|
||||
log_debug(LD_CHANNEL,
|
||||
"Force-freeing channel " U64_FORMAT " at %p",
|
||||
U64_PRINTF_ARG(chan->global_identifier), chan);
|
||||
|
||||
/*
|
||||
* Get rid of cmux policy before we do anything, so cmux policies don't
|
||||
* see channels in weird half-freed states.
|
||||
|
|
Loading…
Add table
Reference in a new issue