<p>If it would be a double free, then that should be caught earlier, iirc. Likely to be a buffer overflow, which may be fixed meanwhile, because 3.2.3 is rather old, you should at least upgrade to latest 3.2.x.</p>

<p>If you got a coredump, then print the content of the fragment to see what piece of code allocated it.</p>

<p>Regarding the PR, the commit message is not strictly related to the code changes, but the discussion here, so it doesn't really suits for a commit history. Once I get the time to check it and all ok, then I will apply it manually, changing the commit message to be relevant for the code changes, according to:</p>

<ul>
<li><a href="http://www.kamailio.org/wiki/devel/github-contributions">http://www.kamailio.org/wiki/devel/github-contributions</a></li>
</ul>

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