<p><a href="https://github.com/jarrodb" class="user-mention">@jarrodb</a>, many thanks for keep looking into this issue. After paying more attention into this, the massive leak comes from not freeing the "disp" structure (along with all its parameters) on the success branch. Even if the Disposition body is ok, the "disp" is neither attached, not freed anywhere else in the code. So, I extended your fix to free the disp all the time, on failure and success.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/825#issuecomment-195307987">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcibBXXKZguy2JFdYGOFG79YTe8Vo6ks5psUEGgaJpZM4HuFqw.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/OpenSIPS/opensips/pull/825#issuecomment-195307987"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>