<p>Have you observed a leak here? According to the documentation for sip_msg_shm_clone() [1]:</p>

<p>"org_msg is cloned along with most of its headers and lumps into one shm memory block (so that a shm_free() on the result will free everything)."</p>

<ol class="task-list">
<li><a href="http://rpm.kamailio.org/doxygen/sip-router/branch/master/sip__msg__clone_8c.html">http://rpm.kamailio.org/doxygen/sip-router/branch/master/sip__msg__clone_8c.html</a></li>
</ol>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/59#issuecomment-72184412">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZY3l4uT6vb0oh4HXJSGcqL5lk87-ks5nm1oWgaJpZM4DY1s8.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/kamailio/kamailio/pull/59#issuecomment-72184412"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>