From 9e45d3f8932a03521b0e599b6df24835281f53b5 Mon Sep 17 00:00:00 2001
From: Corey Farrell <git@cfware.com>
Date: Mon, 12 Feb 2018 23:15:41 -0500
Subject: [PATCH] main/asterisk.c: Remove silly usage of RAII_VAR.

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

diff --git a/main/asterisk.c b/main/asterisk.c
index 0214159d66..71bff57a44 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -1028,7 +1028,7 @@ int ast_pbx_uuid_get(char *pbx_uuid, int length)
 
 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 @@ static void publish_fully_booted(void)
 			"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)
-- 
GitLab