Module: kamailio Branch: master Commit: fe19995ba150beca0acf6f4bdc1bb92f3c8348e1 URL: https://github.com/kamailio/kamailio/commit/fe19995ba150beca0acf6f4bdc1bb92f...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/fe19995ba150beca0acf6f4bdc1bb92f... Patch: https://github.com/kamailio/kamailio/commit/fe19995ba150beca0acf6f4bdc1bb92f...
---
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);