From d277f3ec3ee7a7a38971f5da56bd79347ac6bf9a Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Fri, 21 Feb 2014 18:04:54 +0000 Subject: json: Fix off-nominal json ref counting issues. * Fixed off-nominal json ref counting issue with using the following API calls: ast_json_object_set() and ast_json_array_append(). * Fixed off-nominal error reporting in ast_ari_endpoints_list(). * Fixed some miscellaneous off-nominal json ref counting issues in report_receive_fax_status() and dial_to_json(). ........ Merged revisions 408713 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@408714 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_fax.c | 1 + 1 file changed, 1 insertion(+) (limited to 'res/res_fax.c') diff --git a/res/res_fax.c b/res/res_fax.c index c4e64cd71..e05b101f7 100644 --- a/res/res_fax.c +++ b/res/res_fax.c @@ -1774,6 +1774,7 @@ static int report_receive_fax_status(struct ast_channel *chan, const char *filen struct ast_json *json_filename = ast_json_string_create(filename); if (!json_array || !json_filename) { + ast_json_unref(json_filename); return -1; } ast_json_array_append(json_array, json_filename); -- cgit v1.2.3