[Asterisk-code-review] stasis channels.c: Remove a very silly RAII VAR(). (asterisk[master])

Richard Mudgett asteriskteam at digium.com
Mon Nov 6 12:06:56 CST 2017


Richard Mudgett has uploaded this change for review. ( https://gerrit.asterisk.org/7021


Change subject: stasis_channels.c: Remove a very silly RAII_VAR().
......................................................................

stasis_channels.c: Remove a very silly RAII_VAR().

Change-Id: I28b458b3c1a442c4ef0be7b4986a95ea4149e14f
---
M main/stasis_channels.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/21/7021/1

diff --git a/main/stasis_channels.c b/main/stasis_channels.c
index dd71b86..b81dbe5 100644
--- a/main/stasis_channels.c
+++ b/main/stasis_channels.c
@@ -891,7 +891,7 @@
 	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
@@ -924,7 +924,7 @@
 		ast_json_object_set(json_chan, "channelvars", ast_json_channel_vars(snapshot->ari_vars));
 	}
 
-	return ast_json_ref(json_chan);
+	return json_chan;
 }
 
 int ast_channel_snapshot_cep_equal(

-- 
To view, visit https://gerrit.asterisk.org/7021
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I28b458b3c1a442c4ef0be7b4986a95ea4149e14f
Gerrit-Change-Number: 7021
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171106/8acdba7f/attachment.html>


More information about the asterisk-code-review mailing list