<p>Sean Bright has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15815">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">translate.c: Avoid refleak when checking for a translation path<br><br>Change-Id: Idbd61ff77545f4a78b06a5064b55112e774b70e6<br>---<br>M main/translate.c<br>1 file changed, 1 insertion(+), 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/15/15815/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/translate.c b/main/translate.c</span><br><span>index 6604d14..27e73f6 100644</span><br><span>--- a/main/translate.c</span><br><span>+++ b/main/translate.c</span><br><span>@@ -1527,7 +1527,7 @@</span><br><span> destination format. */</span><br><span> for (i = ast_format_cap_count(result) - 1; 0 <= i; i--) {</span><br><span> int index, src_index;</span><br><span style="color: hsl(0, 100%, 40%);">- struct ast_format *fmt = ast_format_cap_get_format(result, i);</span><br><span style="color: hsl(120, 100%, 40%);">+ RAII_VAR(struct ast_format *, fmt, ast_format_cap_get_format(result, i), ao2_cleanup);</span><br><span> </span><br><span> if (ast_format_get_type(fmt) != type) {</span><br><span> continue;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15815">change 15815</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/+/15815"/><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: Idbd61ff77545f4a78b06a5064b55112e774b70e6 </div>
<div style="display:none"> Gerrit-Change-Number: 15815 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>