<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/7030">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Richard Mudgett: 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;">stasis: Remove silly use of RAII_VAR in stasis_forward_all.<br><br>Change-Id: I46de4c968d40144d5b049966304ff66c1469fb65<br>---<br>M main/stasis.c<br>1 file changed, 4 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/stasis.c b/main/stasis.c<br>index 48e4eb5..372e919 100644<br>--- a/main/stasis.c<br>+++ b/main/stasis.c<br>@@ -910,7 +910,7 @@<br> {<br> int res;<br> size_t idx;<br>- RAII_VAR(struct stasis_forward *, forward, NULL, ao2_cleanup);<br>+ struct stasis_forward *forward;<br> <br> if (!from_topic || !to_topic) {<br> return NULL;<br>@@ -923,7 +923,7 @@<br> <br> /* Forwards to ourselves are implicit. */<br> if (to_topic == from_topic) {<br>- return ao2_bump(forward);<br>+ return forward;<br> }<br> <br> forward->from_topic = ao2_bump(from_topic);<br>@@ -934,6 +934,7 @@<br> if (res != 0) {<br> ao2_unlock(from_topic);<br> ao2_unlock(to_topic);<br>+ ao2_ref(forward, -1);<br> return NULL;<br> }<br> <br>@@ -943,7 +944,7 @@<br> ao2_unlock(from_topic);<br> ao2_unlock(to_topic);<br> <br>- return ao2_bump(forward);<br>+ return forward;<br> }<br> <br> static void subscription_change_dtor(void *obj)<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7030">change 7030</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/7030"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I46de4c968d40144d5b049966304ff66c1469fb65 </div>
<div style="display:none"> Gerrit-Change-Number: 7030 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>