<p>Sean Bright has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15407">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_read: Release tone zone reference on early return.<br><br>Change-Id: I350939f2220f9e5d44ddf4c8d9a4c99fde4d169a<br>---<br>M apps/app_read.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/07/15407/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/apps/app_read.c b/apps/app_read.c</span><br><span>index f919357..6398281 100644</span><br><span>--- a/apps/app_read.c</span><br><span>+++ b/apps/app_read.c</span><br><span>@@ -195,6 +195,9 @@</span><br><span> if (ast_channel_state(chan) != AST_STATE_UP) {</span><br><span> if (ast_test_flag(&flags, OPT_SKIP)) {</span><br><span> /* At the user's option, skip if the line is not up */</span><br><span style="color: hsl(120, 100%, 40%);">+ if (ts) {</span><br><span style="color: hsl(120, 100%, 40%);">+ ts = ast_tone_zone_sound_unref(ts);</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span> pbx_builtin_setvar_helper(chan, arglist.variable, "");</span><br><span> pbx_builtin_setvar_helper(chan, "READSTATUS", "SKIPPED");</span><br><span> return 0;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15407">change 15407</a>. To unsubscribe, or for help writing mail filters, 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/c/asterisk/+/15407"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 18 </div>
<div style="display:none"> Gerrit-Change-Id: I350939f2220f9e5d44ddf4c8d9a4c99fde4d169a </div>
<div style="display:none"> Gerrit-Change-Number: 15407 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>