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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 9 11:43:18 CDT 2017


Jenkins2 has submitted this change and it was merged. ( 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(-)

Approvals:
  Sean Bright: Looks good to me, but someone else must approve
  Corey Farrell: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved
  Jenkins2: Approved for Submit



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: merged
Gerrit-Change-Id: Ife3e289062e6cf7d0e7d342dbf79ed96feff441e
Gerrit-Change-Number: 6686
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: David Hajek <david.hajek at daktela.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-commits/attachments/20171009/9081cc49/attachment-0001.html>


More information about the asterisk-commits mailing list