From: Corey Farrell Date: Tue, 13 Feb 2018 04:15:41 +0000 (-0500) Subject: main/asterisk.c: Remove silly usage of RAII_VAR. X-Git-Tag: 15.3.0-rc1~33^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5bab6d242f54bd8fbd40600b5b9ab93872dbf4b;p=thirdparty%2Fasterisk.git main/asterisk.c: Remove silly usage of RAII_VAR. Change-Id: I7e2996397fbd3c3a6a69dd805c38448ddfc34ae9 --- diff --git a/main/asterisk.c b/main/asterisk.c index 48516d9c69..09914a2d69 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)