diff options
author | Richard Mudgett <rmudgett@digium.com> | 2017-11-01 17:47:57 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2017-11-03 13:13:57 -0500 |
commit | b5ee0087dea138e6e56fd3e54a4e033816db2d19 (patch) | |
tree | 065d5d32b178f38154461e40725de45a44a5e5b4 /main/sorcery.c | |
parent | 2551b5a4ba8e090a33397886447ab66c7a1248ec (diff) |
Stasis/ARI: Fix off-nominal path json memory leaks.
Change-Id: Id569c624c426e3b22a99936473c730592d8b83fb
Diffstat (limited to 'main/sorcery.c')
-rw-r--r-- | main/sorcery.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/sorcery.c b/main/sorcery.c index 61628fbf4..5ff1d106c 100644 --- a/main/sorcery.c +++ b/main/sorcery.c @@ -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; } |