summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-11-06 08:39:20 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-11-06 08:39:20 -0600
commit1479d2603eabbd34c9cf93daa99bbd683184094c (patch)
tree51dee20d09989e0913eae76783d77fcb5fb16ba8 /main
parent6e34cf6af7efd6810c46798a05f52d1e7405e67a (diff)
parent3bce5a9dfa0e30942cac097a3161ada9c5bf60ee (diff)
Merge "Stasis/ARI: Fix off-nominal path json memory leaks." into 13
Diffstat (limited to 'main')
-rw-r--r--main/sorcery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/sorcery.c b/main/sorcery.c
index 713b038e6..1bdf2c2f8 100644
--- a/main/sorcery.c
+++ b/main/sorcery.c
@@ -1597,6 +1597,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;
}