mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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(). git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@408713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -977,6 +977,9 @@ static struct ast_json *dial_to_json(
|
||||
"forward", ast_json_object_get(blob, "forward"),
|
||||
"dialstring", ast_json_object_get(blob, "dialstring"));
|
||||
if (!json) {
|
||||
ast_json_unref(caller_json);
|
||||
ast_json_unref(peer_json);
|
||||
ast_json_unref(forwarded_json);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user