From: hajekd Date: Sun, 8 Oct 2017 19:05:56 +0000 (+0200) Subject: res/res_ari.c Fix: Memory leaks in ARI when using Content-Type: application/json X-Git-Tag: 14.7.0-rc1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b4fc0699a52dc60efa9a635a2aa175d05bff634;p=thirdparty%2Fasterisk.git 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 --- diff --git a/res/res_ari.c b/res/res_ari.c index c6fbc6c50b..d99150b7a2 100644 --- a/res/res_ari.c +++ b/res/res_ari.c @@ -886,7 +886,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) {