<p>Joshua Colp <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15039">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Sean Bright: Looks good to me, but someone else must approve
George Joseph: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved; Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">resource_endpoints.c: memory leak when providing a 404 response<br><br>When handling a send_message request to a non-existing endpoint, the response's<br>body is overriden and not properly freed.<br><br>ASTERISK-29108<br><br>Change-Id: Ie1d3d70065f80793445b60f5e4a7eb31b4b9c5c8<br>---<br>M res/ari/resource_endpoints.c<br>1 file changed, 1 insertion(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/ari/resource_endpoints.c b/res/ari/resource_endpoints.c</span><br><span>index e0bbcb5..4613282 100644</span><br><span>--- a/res/ari/resource_endpoints.c</span><br><span>+++ b/res/ari/resource_endpoints.c</span><br><span>@@ -211,6 +211,7 @@</span><br><span> if (ast_msg_send(msg, to, from)) {</span><br><span> ast_ari_response_error(response, 404, "Not Found",</span><br><span> "Endpoint not found");</span><br><span style="color: hsl(120, 100%, 40%);">+ return;</span><br><span> }</span><br><span> </span><br><span> response->message = ast_json_null();</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15039">change 15039</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/15039"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie1d3d70065f80793445b60f5e4a7eb31b4b9c5c8 </div>
<div style="display:none"> Gerrit-Change-Number: 15039 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Jean Aunis - Prescom <jean.aunis@prescom.fr> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>