Module: kamailio Branch: master Commit: b2888724d4f4e0fe6452f4a817e7cf568e901049 URL: https://github.com/kamailio/kamailio/commit/b2888724d4f4e0fe6452f4a817e7cf568e901049
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-06-27T10:12:30+02:00 tsilo: free ts transaction when failing to set tm callback --- Modified: src/modules/tsilo/ts_hash.c --- Diff: https://github.com/kamailio/kamailio/commit/b2888724d4f4e0fe6452f4a817e7cf568e901049.diff Patch: https://github.com/kamailio/kamailio/commit/b2888724d4f4e0fe6452f4a817e7cf568e901049.patch --- diff --git a/src/modules/tsilo/ts_hash.c b/src/modules/tsilo/ts_hash.c index 677599cb1d8..c6dc634b6c4 100644 --- a/src/modules/tsilo/ts_hash.c +++ b/src/modules/tsilo/ts_hash.c @@ -347,6 +347,13 @@ int insert_ts_transaction( if(ts_set_tm_callbacks(t, msg, ts) < 0) { LM_ERR("failed to set transaction %d:%d callbacks\n", tindex, tlabel); + if(prev) { + prev->next = NULL; + } else { + _r->transactions = NULL; + } + free_ts_transaction(ts); + return -1; } update_stat(stored_transactions, 1); _______________________________________________ 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!
