<p>Daniel is right, the memory should be eventually freed when ALL the child processes update their local configuration, i.e. do at least one iteration of their loop and call cfg_update(). Each child process updates its local cfg pointer to the global one and travels through the pending callback list. Every item of this list can have a set of memory address to free. The last child that processes the change frees the memory.<br>
Check cfg_update_local with the loop:<br>
while (cfg_child_cb != last_cb) {...}<br>
cfg_child_cb_free_item() frees the "replaced" strings.</p>
<p>The restriction is that none of the processes should be idle for a very long time. They should at least update the local config from time to time. This may not be always the case.</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/2094?email_source=notifications&email_token=ABO7UZKPU363QQUAGWPVLMTQNXXTZA5CNFSM4I5QAI6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAYG2TY#issuecomment-540044623">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPOS6OR63IDREJXQGDQNXXTZANCNFSM4I5QAI6A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZL6ZKQQJ4EHK4T2GQDQNXXTZA5CNFSM4I5QAI6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAYG2TY.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/2094?email_source=notifications\u0026email_token=ABO7UZKPU363QQUAGWPVLMTQNXXTZA5CNFSM4I5QAI6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAYG2TY#issuecomment-540044623",
"url": "https://github.com/kamailio/kamailio/issues/2094?email_source=notifications\u0026email_token=ABO7UZKPU363QQUAGWPVLMTQNXXTZA5CNFSM4I5QAI6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAYG2TY#issuecomment-540044623",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>