[sr-dev] [kamailio/kamailio] [pv] tr_init_buffers() does malloc but memory is never freed (#2776)

Daniel-Constantin Mierla 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

42:void kz_tr_clear_buffers(void);

105:void kz_tr_clear_buffers(void)

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...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210610/d45eab5b/attachment.htm>

More information about the sr-dev mailing list