diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2018-02-14 12:55:18 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2018-02-14 12:55:18 -0600 |
commit | d6147aa6a3971079e5c829aeabd79bf60f566374 (patch) | |
tree | 2d423065d0188cb88ca2d031c8bd17de9434b349 /main/asterisk.c | |
parent | 41a05aacc95a2cfc80b3c232be02efc4ae380103 (diff) | |
parent | 9e45d3f8932a03521b0e599b6df24835281f53b5 (diff) |
Merge "main/asterisk.c: Remove silly usage of RAII_VAR."
Diffstat (limited to 'main/asterisk.c')
-rw-r--r-- | main/asterisk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c index 3e5134b5d..4c15d231f 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -1027,7 +1027,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; @@ -1048,6 +1048,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) |