diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-11-07 08:09:07 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-11-07 08:09:07 -0600 |
commit | ec40b74e51e10f455ee8141a0537dc0f761b2ec4 (patch) | |
tree | c7b5ffd1c1528d10659ecb471c428f90c21e514e /main | |
parent | 01064bd6bc6422a46efb28b5b4f600e7a5ae7ab6 (diff) | |
parent | 6bc8af2433a7152023a6a615329fd8673352c04c (diff) |
Merge "stasis_channels.c: Remove a very silly RAII_VAR()." into 13
Diffstat (limited to 'main')
-rw-r--r-- | main/stasis_channels.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/stasis_channels.c b/main/stasis_channels.c index d46a8ddcf..0479bd9e9 100644 --- a/main/stasis_channels.c +++ b/main/stasis_channels.c @@ -889,7 +889,7 @@ struct ast_json *ast_channel_snapshot_to_json( const struct ast_channel_snapshot *snapshot, const struct stasis_message_sanitizer *sanitize) { - RAII_VAR(struct ast_json *, json_chan, NULL, ast_json_unref); + struct ast_json *json_chan; if (snapshot == NULL || (sanitize && sanitize->channel_snapshot @@ -918,7 +918,7 @@ struct ast_json *ast_channel_snapshot_to_json( "creationtime", ast_json_timeval(snapshot->creationtime, NULL), "language", snapshot->language); - return ast_json_ref(json_chan); + return json_chan; } int ast_channel_snapshot_cep_equal( |