<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6945">View Change</a></p><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;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/45/6945/1</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..b87b46e 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_cleanup(snapshot);<br>+<br>             return -1;<br>    }<br> <br>+ ao2_cleanup(snapshot);<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: newchange </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: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>