<p><a href="https://github.com/jarrodb" class="user-mention">@jarrodb</a> , thanks for spotting this mem leak. Still, the fix was not correct (on -1 it was doing double free). Also, the correct meaning of the return codes is : -1 is error with no mem allocated ; -2 is error during parsing with mem allocated.</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/822#issuecomment-193489565">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciSk0uk3PsyQzWQ-It8w0ao_ZY-H6ks5prKoPgaJpZM4HrIbm.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/822#issuecomment-193489565"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>