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