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

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


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


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/85/6685/1

diff --git a/res/res_ari.c b/res/res_ari.c
index c6fbc6c..d99150b 100644
--- a/res/res_ari.c
+++ b/res/res_ari.c
@@ -886,7 +886,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/6685
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ife3e289062e6cf7d0e7d342dbf79ed96feff441e
Gerrit-Change-Number: 6685
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/2a96c27c/attachment.html>


More information about the asterisk-code-review mailing list