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

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


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


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/05/8205/1

diff --git a/main/asterisk.c b/main/asterisk.c
index 48516d9..09914a2 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -1028,7 +1028,7 @@
 
 static void publish_fully_booted(void)
 {
-	RAII_VAR(struct ast_json *, json_object, NULL, ast_json_unref);
+	struct ast_json *json_object;
 	int uptime = 0;
 	int lastreloaded = 0;
 	struct timeval tmp;
@@ -1049,6 +1049,7 @@
 			"Uptime", uptime,
 			"LastReload", lastreloaded);
 	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/8205
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7e2996397fbd3c3a6a69dd805c38448ddfc34ae9
Gerrit-Change-Number: 8205
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/7ae2aace/attachment.html>


More information about the asterisk-code-review mailing list