Pārlūkot izejas kodu

tm: reset the tm cell content during free

Daniel-Constantin Mierla 7 gadi atpakaļ
vecāks
revīzija
fe19995ba1
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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);
 #endif
 
+	memset(dead_cell, 0, sizeof(tm_cell_t));
 	/* the cell's body */
 	shm_free_unsafe(dead_cell);