diff options
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; } |