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

src/modules/kazoo/kz_trans.h
42:void kz_tr_clear_buffers(void);

src/modules/kazoo/kz_trans.c
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, view it on GitHub, or unsubscribe.