<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7204">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_pubsub: Clear self-reference on terminated subscription tree.<br><br>Call ast_sip_subscription_destroy(sub_tree->root) from pubsub_on_evsub_state.<br>This allows sub_tree to eventually be freed.<br><br>ASTERISK-25150<br><br>Change-Id: I7baddee3c16dfdc5a12fa652c5359de465e9ebbf<br>---<br>M res/res_pjsip_pubsub.c<br>1 file changed, 3 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/04/7204/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c<br>index 59418e4..435c974 100644<br>--- a/res/res_pjsip_pubsub.c<br>+++ b/res/res_pjsip_pubsub.c<br>@@ -3697,6 +3697,9 @@<br>  shutdown_subscriptions(sub_tree->root);<br> <br>         sub_tree->state = SIP_SUB_TREE_TERMINATED;<br>+        if (sub_tree->root) {<br>+             ast_sip_subscription_destroy(sub_tree->root);<br>+     }<br>     /* Remove evsub's reference to the sub_tree */<br>    ao2_ref(sub_tree, -1);<br> }<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7204">change 7204</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/7204"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I7baddee3c16dfdc5a12fa652c5359de465e9ebbf </div>
<div style="display:none"> Gerrit-Change-Number: 7204 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>