<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6656">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip: Fix leak of fake_auth references.<br><br>pjsip_distributor leaks references to fake_auth when the default realm<br>has not changed.<br><br>ASTERISK-27306<br><br>Change-Id: I3fcf103b3680ad2d1d4610dcd6738eeaebf4d202<br>---<br>M res/res_pjsip/pjsip_distributor.c<br>1 file changed, 2 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/56/6656/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip/pjsip_distributor.c b/res/res_pjsip/pjsip_distributor.c<br>index 3f245ee..8e2ab7e 100644<br>--- a/res/res_pjsip/pjsip_distributor.c<br>+++ b/res/res_pjsip/pjsip_distributor.c<br>@@ -1134,6 +1134,8 @@<br>                    ao2_global_obj_replace_unref(artificial_auth, fake_auth);<br>                     ao2_ref(fake_auth, -1);<br>               }<br>+    } else {<br>+             ao2_cleanup(fake_auth);<br>       }<br> <br>  ast_sip_get_unidentified_request_thresholds(&unidentified_count, &unidentified_period, &unidentified_prune_interval);<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6656">change 6656</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/6656"/><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: I3fcf103b3680ad2d1d4610dcd6738eeaebf4d202 </div>
<div style="display:none"> Gerrit-Change-Number: 6656 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>