Module: kamailio
Branch: master
Commit: fe19995ba150beca0acf6f4bdc1bb92f3c8348e1
URL:
https://github.com/kamailio/kamailio/commit/fe19995ba150beca0acf6f4bdc1bb92…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-10-02T08:59:56+02:00
tm: reset the tm cell content during free
---
Modified: src/modules/tm/h_table.c
---
Diff:
https://github.com/kamailio/kamailio/commit/fe19995ba150beca0acf6f4bdc1bb92…
Patch:
https://github.com/kamailio/kamailio/commit/fe19995ba150beca0acf6f4bdc1bb92…
---
diff --git a/src/modules/tm/h_table.c b/src/modules/tm/h_table.c
index 1ec5747207..d4c86db9b5 100644
--- a/src/modules/tm/h_table.c
+++ b/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);