From 6c858bb237e874e444db9ab68465dcc8cf6f1dd3 Mon Sep 17 00:00:00 2001 From: Vadim Saranov Date: Sat, 11 Apr 2026 11:51:36 +0300 Subject: [PATCH] MT#64901 core: fix memory leak in trans_timer::fire Closes GH#9 Change-Id: I2ec3ef2b1ce82e04caccae6c870e2a983ba9a27c --- core/sip/sip_trans.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/sip/sip_trans.cpp b/core/sip/sip_trans.cpp index 1ddb2ba1..8f7eb3b8 100644 --- a/core/sip/sip_trans.cpp +++ b/core/sip/sip_trans.cpp @@ -205,7 +205,8 @@ void trans_timer::fire() // 2. we have already set a new one // -> anyway, don't fire the old one !!! bucket->unlock(); - return; + delete this; + return; } // timer_expired unlocks the bucket @@ -220,6 +221,7 @@ void trans_timer::fire() else { ERROR("Invalid bucket id\n"); } + delete this; } /**