[Asterisk-code-review] res/res ari.c Fix: Memory leaks in ARI when using Content-Ty... (asterisk[15])

Sean Bright asteriskteam at digium.com
Mon Oct 9 08:05:24 CDT 2017


Sean Bright has uploaded this change for review. ( https://gerrit.asterisk.org/6686


Change subject: res/res_ari.c Fix: Memory leaks in ARI when using Content-Type: application/json
......................................................................

res/res_ari.c Fix: Memory leaks in ARI when using Content-Type: application/json

ASTERISK-27305
Reported by: David Hajek
Tested by: David Hajek

Change-Id: Ife3e289062e6cf7d0e7d342dbf79ed96feff441e
---
M res/res_ari.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/86/6686/1

diff --git a/res/res_ari.c b/res/res_ari.c
index 054d3bf..5145499 100644
--- a/res/res_ari.c
+++ b/res/res_ari.c
@@ -884,7 +884,7 @@
 	RAII_VAR(struct ast_variable *, post_vars, NULL, ast_variables_destroy);
 	struct ast_variable *var;
 	const char *app_name = NULL;
-	RAII_VAR(struct ast_json *, body, ast_json_null(), ast_json_free);
+	RAII_VAR(struct ast_json *, body, ast_json_null(), ast_json_unref);
 	int debug_app = 0;
 
 	if (!response_body) {

-- 
To view, visit https://gerrit.asterisk.org/6686
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ife3e289062e6cf7d0e7d342dbf79ed96feff441e
Gerrit-Change-Number: 6686
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: David Hajek <david.hajek at daktela.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171009/9d8fb137/attachment-0001.html>


More information about the asterisk-code-review mailing list