Module: kamailio
Branch: master
Commit: c7e411edb3c68260d43f86ee6977d468c074836b
URL:
https://github.com/kamailio/kamailio/commit/c7e411edb3c68260d43f86ee6977d46…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/c7e411edb3c68260d43f86ee6977d46…
Patch:
https://github.com/kamailio/kamailio/commit/c7e411edb3c68260d43f86ee6977d46…
---
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;