[sr-dev] [kamailio/kamailio] [pv] tr_init_buffers() does malloc but memory is never freed (#2776)
notifications at github.com
Thu Jun 10 18:13:27 CEST 2021
The buffers are allocated once, at startup and reused during runtime many times, till kamailio is stopped. They are per process and, while we have a destroy module callback on shutdown, that's executed only on main process to clean the shared resources. The process private resources as cleaned up when the application exits.
So, it is not a memory leak, if that was your concern.
An as a matter of fact, kazoo module has the function with code to free the buffers, but never executes it:
# ag kz_tr_clear_buffers
If you haven't observed a behaviour that indicates a leak and can provide more details, then this one will be closed.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sr-dev