<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6857">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/57/6857/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 a1bfbb7..bc37e1e 100644<br>--- a/res/res_pjsip_pubsub.c<br>+++ b/res/res_pjsip_pubsub.c<br>@@ -3680,6 +3680,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/6857">change 6857</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/6857"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I7baddee3c16dfdc5a12fa652c5359de465e9ebbf </div>
<div style="display:none"> Gerrit-Change-Number: 6857 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>