mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Stasis/ARI: Fix off-nominal path json memory leaks.
Change-Id: Id569c624c426e3b22a99936473c730592d8b83fb
This commit is contained in:
@@ -202,6 +202,7 @@ void ast_ari_sounds_list(struct ast_variable *headers,
|
||||
|
||||
if (!ast_json_array_size(sounds_blob)) {
|
||||
ast_ari_response_error(response, 404, "Not Found", "No sounds found that matched the query");
|
||||
ast_json_unref(sounds_blob);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user