[sr-dev] git:4.3:8a16b375: tm: print file name and line in free_cell() warning log message

Daniel-Constantin Mierla miconda at gmail.com
Mon Nov 16 12:03:30 CET 2015


Module: kamailio
Branch: 4.3
Commit: 8a16b37554cb668b9fcb9d0aba11157506f33672
URL: https://github.com/kamailio/kamailio/commit/8a16b37554cb668b9fcb9d0aba11157506f33672

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-11-16T11:59:53+01:00

tm: print file name and line in free_cell() warning log message

(cherry picked from commit bbf3f2a970020116da8c4c50069713e31a268943)

---

Modified: modules/tm/h_table.c

---

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

---

diff --git a/modules/tm/h_table.c b/modules/tm/h_table.c
index 8965cff..5aee155 100644
--- a/modules/tm/h_table.c
+++ b/modules/tm/h_table.c
@@ -126,7 +126,8 @@ void free_cell_helper( struct cell* dead_cell, const char *fname, unsigned int f
 	LM_DBG("freeing transaction %p from %s:%u\n", dead_cell, fname, fline);
 
 	if(dead_cell->prev_c!=NULL && dead_cell->next_c!=NULL) {
-		LM_WARN("removed cell %p is still linked in hash table\n", dead_cell);
+		LM_WARN("removed cell %p is still linked in hash table (%s:%u)\n",
+				dead_cell, fname, fline);
 		unlink_timers(dead_cell);
 		remove_from_hash_table_unsafe(dead_cell);
 	}




More information about the sr-dev mailing list