Skip to content

Commit

Permalink
tm: reinit ref counter if attempting to free while still in wait timer
Browse files Browse the repository at this point in the history
(cherry picked from commit c7e411e)
  • Loading branch information
miconda committed Jan 19, 2016
1 parent 384c0ce commit 7fc18d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/tm/h_table.c
Expand Up @@ -131,6 +131,7 @@ void free_cell_helper(tm_cell_t* dead_cell, int silent, const char *fname, unsig
LM_WARN("removed cell %p is still linked in hash table (%s:%u)\n",
dead_cell, fname, fline);
if(t_on_wait(dead_cell)) {
INIT_REF(dead_cell, 1);
LM_WARN("cell %p is still linked in wait timer (%s:%u)"
" - skip freeing now\n", dead_cell, fname, fline);
return;
Expand Down

0 comments on commit 7fc18d1

Please sign in to comment.