New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cfgutils route_if_exists causing leak #1503
Comments
Not sure if I will be able to find time for this one soon, since there is a working alternative this is probably low priority. |
- do not run the route block as a top route - related to GH #1503
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 Update: statsd seems also ok, after a quick look, so it might be something else, anyhow, maybe you can test with the patch referenced above and see if ok now. |
right, it must be a side effect of having a variable param
no luck with the patch ... |
I pushed the above patch to have a similar behaviour for route_if_exists() like for route(). If the issue still exists, maybe it is better to open a new issue to track it in the context of the latest code. |
Description
cfgutils route_if_exists can leak when
1: using a $var or $avp
2: some functions are called within the called route
Troubleshooting
Reproduction
reproduced on both Kamailio 4.4.x and 5.x
Note that in my tests the route is executed from
rtimer
in case this is part of the problem somehow.example :
working alternative
Debugging Data
reproduced on both Kamailio 4.4.x and 5.x
The text was updated successfully, but these errors were encountered: