<p>Richard Mudgett has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6982">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">AOC: Fix AOC-S json memory leak.<br><br>Change-Id: I3a1d40a41a8a7d00fa4a187de6a343a79155d3ef<br>---<br>M main/aoc.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/82/6982/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/aoc.c b/main/aoc.c<br>index d4b74ec..451b219 100644<br>--- a/main/aoc.c<br>+++ b/main/aoc.c<br>@@ -1713,7 +1713,7 @@<br> }<br> <br> for (i = 0; i < decoded->aoc_s_count; ++i) {<br>- struct ast_json *rate = ast_json_object_create();<br>+ struct ast_json *rate;<br> RAII_VAR(struct ast_json *, type, NULL, ast_json_unref);<br> RAII_VAR(struct ast_json *, currency, NULL, ast_json_unref);<br> const char *charge_item = aoc_charged_item_str(<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6982">change 6982</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/6982"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I3a1d40a41a8a7d00fa4a187de6a343a79155d3ef </div>
<div style="display:none"> Gerrit-Change-Number: 6982 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>