<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7788">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">stasis_cache: Ignore subscription changes in caching_topic_exec.<br><br>Ignore stasis_subscription_change_type in caching_topic_exec to avoid a<br>memory leak.<br><br>ASTERISK-27121 #close<br>patches:<br> fix_27121.patch by Sergej Kasumovic (license 6895)<br><br>Change-Id: I6d502284730d243a217f91666616a27eba7995b0<br>---<br>M main/stasis_cache.c<br>1 file changed, 5 insertions(+), 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/88/7788/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/stasis_cache.c b/main/stasis_cache.c<br>index 3bcf0c4..9d81ada 100644<br>--- a/main/stasis_cache.c<br>+++ b/main/stasis_cache.c<br>@@ -806,13 +806,17 @@<br>    ast_assert(caching_topic->cache != NULL);<br>  ast_assert(caching_topic->cache->id_fn != NULL);<br> <br>+    msg_type = stasis_message_type(message);<br>+     if (stasis_subscription_change_type() == msg_type) {<br>+         return;<br>+      }<br>+<br>  if (stasis_subscription_final_message(sub, message)) {<br>                caching_topic_needs_unref = caching_topic;<br>    } else {<br>              caching_topic_needs_unref = NULL;<br>     }<br> <br>- msg_type = stasis_message_type(message);<br>      if (stasis_cache_clear_type() == msg_type) {<br>          /* Cache clear event. */<br>              msg_put = NULL;<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7788">change 7788</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/7788"/><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: I6d502284730d243a217f91666616a27eba7995b0 </div>
<div style="display:none"> Gerrit-Change-Number: 7788 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>