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

David Hajek asteriskteam at digium.com
Sun Oct 8 14:06:36 CDT 2017


David Hajek has uploaded this change for review. ( https://gerrit.asterisk.org/6684


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/84/6684/1

diff --git a/res/res_ari.c b/res/res_ari.c
index 809b7f6..1ac5327 100644
--- a/res/res_ari.c
+++ b/res/res_ari.c
@@ -883,7 +883,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/6684
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ife3e289062e6cf7d0e7d342dbf79ed96feff441e
Gerrit-Change-Number: 6684
Gerrit-PatchSet: 1
Gerrit-Owner: David Hajek <david.hajek at daktela.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171008/4977364b/attachment.html>


More information about the asterisk-code-review mailing list