Browse Source

tm: reset the tm cell content during free

Daniel-Constantin Mierla 7 years ago
parent
commit
fe19995ba1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/modules/tm/h_table.c

+ 1 - 0
src/modules/tm/h_table.c

@@ -253,6 +253,7 @@ void free_cell_helper(
 		xavp_destroy_list_unsafe(&dead_cell->xavps_list);
 		xavp_destroy_list_unsafe(&dead_cell->xavps_list);
 #endif
 #endif
 
 
+	memset(dead_cell, 0, sizeof(tm_cell_t));
 	/* the cell's body */
 	/* the cell's body */
 	shm_free_unsafe(dead_cell);
 	shm_free_unsafe(dead_cell);