Bläddra i källkod

tm: reinit ref counter if attempting to free while still in wait timer

Daniel-Constantin Mierla 9 år sedan
förälder
incheckning
c7e411edb3
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      modules/tm/h_table.c

+ 1 - 0
modules/tm/h_table.c

@@ -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;