]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
stasis_channels.c: Remove a very silly RAII_VAR().
authorRichard Mudgett <rmudgett@digium.com>
Fri, 3 Nov 2017 22:43:18 +0000 (17:43 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 6 Nov 2017 17:58:57 +0000 (11:58 -0600)
Change-Id: I28b458b3c1a442c4ef0be7b4986a95ea4149e14f

main/stasis_channels.c

index d46a8ddcf003b0ced6cfde56bbe8520100669abf..0479bd9e92b0c758f0e025c288972370851b92cd 100644 (file)
@@ -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(