<p>George Joseph <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15393">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Kevin Harwell: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved; Approved for Submit
</div><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;"><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/+/15393">change 15393</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/+/15393"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I350939f2220f9e5d44ddf4c8d9a4c99fde4d169a </div>
<div style="display:none"> Gerrit-Change-Number: 15393 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>