Stasis/ARI: Fix off-nominal path json memory leaks.

Change-Id: Id569c624c426e3b22a99936473c730592d8b83fb
This commit is contained in:
Richard Mudgett
2017-11-01 17:47:57 -05:00
parent 325b5dd30f
commit 79ddcdbc70
5 changed files with 15 additions and 2 deletions

View File

@@ -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;
}