<p></p>
<p>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.</p>
<p>So, it is not a memory leak, if that was your concern.</p>
<p>An as a matter of fact, kazoo module has the function with code to free the buffers, but never executes it:</p>
<pre><code># 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)
</code></pre>
<p>If you haven't observed a behaviour that indicates a leak and can provide more details, then this one will be closed.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2776#issuecomment-858755996">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZITCPAFFUFS7Y2PVYDTSDQCPANCNFSM46OUX46A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZK4I4UVMLP4FMCDIIDTSDQCPA5CNFSM46OUX46KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGMXZHHA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2776#issuecomment-858755996",
"url": "https://github.com/kamailio/kamailio/issues/2776#issuecomment-858755996",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>