<p>David Hajek has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6684">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res/res_ari.c Fix: Memory leaks in ARI when using Content-Type: application/json<br><br>ASTERISK-27305<br>Reported by: David Hajek<br>Tested by: David Hajek<br><br>Change-Id: Ife3e289062e6cf7d0e7d342dbf79ed96feff441e<br>---<br>M res/res_ari.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/84/6684/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_ari.c b/res/res_ari.c<br>index 809b7f6..1ac5327 100644<br>--- a/res/res_ari.c<br>+++ b/res/res_ari.c<br>@@ -883,7 +883,7 @@<br> RAII_VAR(struct ast_variable *, post_vars, NULL, ast_variables_destroy);<br> struct ast_variable *var;<br> const char *app_name = NULL;<br>- RAII_VAR(struct ast_json *, body, ast_json_null(), ast_json_free);<br>+ RAII_VAR(struct ast_json *, body, ast_json_null(), ast_json_unref);<br> int debug_app = 0;<br> <br> if (!response_body) {<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6684">change 6684</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/6684"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ife3e289062e6cf7d0e7d342dbf79ed96feff441e </div>
<div style="display:none"> Gerrit-Change-Number: 6684 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: David Hajek <david.hajek@daktela.com> </div>