ivanuschak left a comment (kamailio/kamailio#4257)
Memory leak occurs, because `dispatcher` module sends ping requests (OPTIONS) within a dedicated kamailio process called `slow timer` and during this ping request processing the memory for AVP is allocated within this `slow timer` process. But the AVP releasing procedure is called when kamailio receives reply on the OPTIONS (or timeout), and it's always done by kamailio processes called `udp receiver` or `tcp receiver`, but the AVP release is never called from `slow timer` process. This makes `slow timer` process continiously accumulating shared memory and never release it.
Possible fix for this memory leak is proposed in this PR - https://github.com/kamailio/kamailio/pull/4258 When kamailio is running with this fix applied then memory leaking is not observed.