summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorhajekd <david.hajek@daktela.com>2017-10-08 21:05:56 +0200
committerSean Bright <sean.bright@gmail.com>2017-10-09 08:05:23 -0500
commit335c46185a4278fed6c43fe5fcbc3f2935de4430 (patch)
tree7018c21c2b66805f84bd76ee33f3be7d3362da8b /res
parentb8d3f39a85e72584ec59ca50d5e120d3f8d7d030 (diff)
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
Diffstat (limited to 'res')
-rw-r--r--res/res_ari.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_ari.c b/res/res_ari.c
index 054d3bf3c..5145499be 100644
--- a/res/res_ari.c
+++ b/res/res_ari.c
@@ -884,7 +884,7 @@ static int ast_ari_callback(struct ast_tcptls_session_instance *ser,
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) {