[sr-dev] [kamailio/kamailio] cfgutils route_if_exists causing leak (#1503)

Daniel-Constantin Mierla notifications at github.com
Fri Apr 27 09:06:12 CEST 2018


It's rather impossible that $var(...) is leaking, but be aware that its value persists across executions of route blocks, the value is reset only by a new assign.

Then $avp() is using shared memory, so not related to pkg.stats output.

I looked at the code for `route_if_exists` and I discovered that was executing the route block as a top route, not as a sub-route (what route(x) does). I pushed a patch for it. Maybe that was the cause of leak, eventually inside the statsd operation, because route_if_exists doesn't allocate anything itself.

-- 
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/1503#issuecomment-384884501
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180427/0f3e0159/attachment.html>


More information about the sr-dev mailing list