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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-06-27T07:19:44+02:00

tsilo: free cloned data in case of error setting tm callbacks

---

Modified: src/modules/tsilo/ts_handlers.c

---

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

---

diff --git a/src/modules/tsilo/ts_handlers.c b/src/modules/tsilo/ts_handlers.c
index 2251f79e0ad..edbb3fc280e 100644
--- a/src/modules/tsilo/ts_handlers.c
+++ b/src/modules/tsilo/ts_handlers.c
@@ -55,6 +55,7 @@ int ts_set_tm_callbacks(struct cell *t, sip_msg_t *req, 
ts_transaction_t *ts)
                        < 0) {
                LM_ERR("failed to register TMCB for transaction %d:%d\n", 
t->hash_index,
                                t->label);
+               free_ts_transaction(ts_clone);
                return -1;
        }
        LM_DBG("registered TMCB for transaction %d:%d\n", ts_clone->tindex,

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to