Module: kamailio
Branch: master
Commit: 1d24e36d95b97e41bc76949bdd8ba2a24babdffe
URL:
https://github.com/kamailio/kamailio/commit/1d24e36d95b97e41bc76949bdd8ba2a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-24T15:01:57+02:00
tm: warn message on unexpected fcount value
---
Modified: src/modules/tm/h_table.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1d24e36d95b97e41bc76949bdd8ba2a…
Patch:
https://github.com/kamailio/kamailio/commit/1d24e36d95b97e41bc76949bdd8ba2a…
---
diff --git a/src/modules/tm/h_table.c b/src/modules/tm/h_table.c
index 998bdfad8e..1ec5747207 100644
--- a/src/modules/tm/h_table.c
+++ b/src/modules/tm/h_table.c
@@ -146,6 +146,9 @@ void free_cell_helper(
release_cell_lock(dead_cell); /* does nothing */
dead_cell->fcount++;
+ if(dead_cell->fcount!=1) {
+ LM_WARN("unexpected fcount value: %d\n", dead_cell->fcount);
+ }
if(unlikely(has_tran_tmcbs(dead_cell, TMCB_DESTROY)))
run_trans_callbacks(TMCB_DESTROY, dead_cell, 0, 0, 0);