<p>Joshua C. Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/11037">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Sean Bright: Looks good to me, but someone else must approve
Richard Mudgett: Looks good to me, but someone else must approve
Joshua C. Colp: Looks good to me, approved; Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_ari_applications: Fix incorrect call to ao2_lock.<br><br>When listing the applications the apps lock was incorrectly<br>locked twice instead of being locked and then unlocked.<br><br>ASTERISK-28302<br><br>Change-Id: If7d064592a9e88c0f1049214c50e02be6dabf79e<br>---<br>M res/ari/resource_applications.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/ari/resource_applications.c b/res/ari/resource_applications.c</span><br><span>index 4a97401..1d22a92 100644</span><br><span>--- a/res/ari/resource_applications.c</span><br><span>+++ b/res/ari/resource_applications.c</span><br><span>@@ -58,7 +58,7 @@</span><br><span> ao2_lock(apps);</span><br><span> count = ao2_container_count(apps);</span><br><span> ao2_callback(apps, OBJ_NOLOCK | OBJ_NODATA, append_json, json);</span><br><span style="color: hsl(0, 100%, 40%);">- ao2_lock(apps);</span><br><span style="color: hsl(120, 100%, 40%);">+ ao2_unlock(apps);</span><br><span> </span><br><span> if (count != ast_json_array_size(json)) {</span><br><span> ast_ari_response_error(response, 500, "Internal Server Error",</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/11037">change 11037</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/11037"/><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: If7d064592a9e88c0f1049214c50e02be6dabf79e </div>
<div style="display:none"> Gerrit-Change-Number: 11037 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua C. Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Joshua C. Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>