<p>Also, there may have been the potential for a memory leak in <code>start_async_http_req</code> where <code>(struct curl_slist *) list</code> was allocated at rest_methods.c:130 and hit <code>goto error;</code> at rest_methods.c:183 which bypassed the <code>curl_slist_free_all(list);</code> in the <code>success:</code> label.</p>

<p>Pull request <a href="https://github.com/OpenSIPS/opensips/pull/497" class="issue-link" title="addition of rest_append_hf command">#497</a> adds the free call to the <code>error:</code> label as well.</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/issues/496#issuecomment-98964917">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcif4V0OXdi0nu92HTU0hzaw1XleOVks5oGFXOgaJpZM4EPNyH.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/issues/496#issuecomment-98964917"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>