<p>Hi,<br>
I think your problem is at line 238</p>
<pre><code>@@ -237,6 +236,10 @@
pkg_free(ns);
json_object_put(payload);
+ if (cmd->notify_only) free_pipe_cmd(cmd);
+error:
+ if (cmd->notify_only) free_pipe_cmd(cmd);
+ return;
}
</code></pre>
<p>You are calling free_pipe_cmd before and after the error: label</p>
<p>Hugh</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/issues/296#issuecomment-135437733">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZVne0X7MsIxhp1TahTmpOqf-Eym1ks5orwzpgaJpZM4Fw0dn.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/issues/296#issuecomment-135437733"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>