<p>Thanks for clarifying, Daniel.</p>

<p>As the From header is parsed prior to cloning (and therefore included in the clone), it is pointless to parse it again and have to manually clean it up later - so this part of the code needs changing anyway.</p>

<p>I have added a commit to master relating to the above - Andrey, can you confirm if this also fixes the leak you observed?</p>

<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-72206321">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZeoPzoLX_zjZy7GpGL2k4ETyV7Zhks5nm4hKgaJpZM4DY1s8.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-72206321"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>