[sr-dev] git:master:c7e411ed: tm: reinit ref counter if attempting to free while still in wait timer

Daniel-Constantin Mierla miconda at gmail.com
Wed Dec 30 21:19:23 CET 2015


Module: kamailio
Branch: master
Commit: c7e411edb3c68260d43f86ee6977d468c074836b
URL: https://github.com/kamailio/kamailio/commit/c7e411edb3c68260d43f86ee6977d468c074836b

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-12-30T21:18:23+01:00

tm: reinit ref counter if attempting to free while still in wait timer

---

Modified: modules/tm/h_table.c

---

Diff:  https://github.com/kamailio/kamailio/commit/c7e411edb3c68260d43f86ee6977d468c074836b.diff
Patch: https://github.com/kamailio/kamailio/commit/c7e411edb3c68260d43f86ee6977d468c074836b.patch

---

diff --git a/modules/tm/h_table.c b/modules/tm/h_table.c
index ea38de0..d492665 100644
--- a/modules/tm/h_table.c
+++ b/modules/tm/h_table.c
@@ -131,6 +131,7 @@ void free_cell_helper(tm_cell_t* dead_cell, int silent, const char *fname, unsig
 			LM_WARN("removed cell %p is still linked in hash table (%s:%u)\n",
 				dead_cell, fname, fline);
 			if(t_on_wait(dead_cell)) {
+				INIT_REF(dead_cell, 1);
 				LM_WARN("cell %p is still linked in wait timer (%s:%u)"
 						" - skip freeing now\n", dead_cell, fname, fline);
 				return;




More information about the sr-dev mailing list