浏览代码

tm: reset the tm cell content during free

Daniel-Constantin Mierla 7 年之前
父节点
当前提交
fe19995ba1
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);