[sr-dev] [kamailio/kamailio] core/cfg has memory leak if string value is set (#2094)

Daniel-Constantin Mierla notifications at github.com
Wed Oct 9 11:54:48 CEST 2019


I haven't really went that deep in the related code, but there are reference counters behind those values, so they might be released when all processes get to use the new value, which can be later in time (or never, depending on the type of sip traffic). Overall, I am not sure if the framework was designed to deal with very often changes, could be more for adjusting some global/custom/module parameters from time to time to avoid restarting kamailio.

With the first example in this report, changing very often the ac_extra_hdrs for tm is not likely, imo.

If you need to use in config a string variable that has to be changed very often via rpc, use better $shv(x) or $sht(t=>x) .

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2094#issuecomment-539929291
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20191009/79794859/attachment.html>


More information about the sr-dev mailing list