[sr-dev] git:master:1d24e36d: tm: warn message on unexpected fcount value
Daniel-Constantin Mierla
miconda at gmail.com
Mon Sep 24 15:02:40 CEST 2018
Module: kamailio
Branch: master
Commit: 1d24e36d95b97e41bc76949bdd8ba2a24babdffe
URL: https://github.com/kamailio/kamailio/commit/1d24e36d95b97e41bc76949bdd8ba2a24babdffe
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/1d24e36d95b97e41bc76949bdd8ba2a24babdffe.diff
Patch: https://github.com/kamailio/kamailio/commit/1d24e36d95b97e41bc76949bdd8ba2a24babdffe.patch
---
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);
More information about the sr-dev
mailing list