<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6945">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve; Approved for Submit
George Joseph: Looks good to me, approved
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_ari_channels: Fix reference leak in channel_state_invalid.<br><br>channel_state_invalid leaked a reference to the channel snapshot any<br>time it was aquired.<br><br>ASTERISK-27067 #close<br><br>Change-Id: I8c653f00416b39978513c5605c4be0f03b1df29a<br>---<br>M res/ari/resource_channels.c<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/ari/resource_channels.c b/res/ari/resource_channels.c<br>index 6027a80..6b4f26c 100644<br>--- a/res/ari/resource_channels.c<br>+++ b/res/ari/resource_channels.c<br>@@ -99,9 +99,13 @@<br> || snapshot->state == AST_STATE_RINGING) {<br> ast_ari_response_error(response, 412, "Precondition Failed",<br> "Channel in invalid state");<br>+ ao2_ref(snapshot, -1);<br>+<br> return -1;<br> }<br> <br>+ ao2_ref(snapshot, -1);<br>+<br> return 0;<br> }<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6945">change 6945</a>. To unsubscribe, 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/6945"/><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-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I8c653f00416b39978513c5605c4be0f03b1df29a </div>
<div style="display:none"> Gerrit-Change-Number: 6945 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>