--- res_ari.c.orig 2017-09-19 18:05:14.000000000 +0200 +++ res_ari.c 2017-10-05 21:47:41.000000000 +0200 @@ -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) {