[Asterisk-code-review] main/asterisk.c: Remove silly usage of RAII VAR. (asterisk[13])

Corey Farrell asteriskteam at digium.com
Mon Feb 12 22:12:07 CST 2018


Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/8204


Change subject: main/asterisk.c: Remove silly usage of RAII_VAR.
......................................................................

main/asterisk.c: Remove silly usage of RAII_VAR.

Change-Id: I7e2996397fbd3c3a6a69dd805c38448ddfc34ae9
---
M main/asterisk.c
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/04/8204/1

diff --git a/main/asterisk.c b/main/asterisk.c
index d2230dc..870e551 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -1160,11 +1160,12 @@
 
 static void publish_fully_booted(void)
 {
-	RAII_VAR(struct ast_json *, json_object, NULL, ast_json_unref);
+	struct ast_json *json_object;
 
 	json_object = ast_json_pack("{s: s}",
 			"Status", "Fully Booted");
 	ast_manager_publish_event("FullyBooted", EVENT_FLAG_SYSTEM, json_object);
+	ast_json_unref(json_object);
 }
 
 static void ast_run_atexits(int run_cleanups)

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

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7e2996397fbd3c3a6a69dd805c38448ddfc34ae9
Gerrit-Change-Number: 8204
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180212/7f01024c/attachment-0001.html>


More information about the asterisk-code-review mailing list