<p>Kevin Harwell <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/7788">View Change</a></p><p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p>(1 comment)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/7788/1/main/stasis_cache.c">File main/stasis_cache.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/7788/1/main/stasis_cache.c@809">Patch Set #1, Line 809:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">        msg_type = stasis_message_type(message);<br>      if (stasis_subscription_change_type() == msg_type) {<br>          return;<br>       }<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I don't think this is the correct solution here. This essentially blocks unsubscribes in the cache (not sure all the side effects of this).</p><p style="white-space: pre-wrap; word-wrap: break-word;">(If I am wrong about this and this is a viable solution then I think it warrants a comment. Also it seems like some code can be removed from this function and maybe the file in general due to unsubscribe not being allowed in the cache?)</p><p style="white-space: pre-wrap; word-wrap: break-word;">The leak does not appear to be here since if it is an unsubscribe the topic gets deref'ed at the end of this call. I think the ref count problem lies elsewhere?</p></li></ul></li></ul><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: comment </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>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 03 Jan 2018 22:56:11 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>