<p>Joshua C. Colp has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/11035">View Change</a></p><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;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/35/11035/1</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 061d6b4..6c9bd5c 100644</span><br><span>--- a/res/ari/resource_applications.c</span><br><span>+++ b/res/ari/resource_applications.c</span><br><span>@@ -60,7 +60,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/11035">change 11035</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/11035"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: If7d064592a9e88c0f1049214c50e02be6dabf79e </div>
<div style="display:none"> Gerrit-Change-Number: 11035 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua C. Colp <jcolp@digium.com> </div>