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

@@ -1633,6 +1633,7 @@ struct ast_json *ast_sorcery_objectset_json_create(const struct ast_sorcery *sor
int res = 0;
if (!object_type || !json) {
ast_json_unref(json);
return NULL;
}