]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
main/asterisk.c: Remove silly usage of RAII_VAR.
authorCorey Farrell <git@cfware.com>
Thu, 16 Nov 2017 18:57:23 +0000 (13:57 -0500)
committerCorey Farrell <git@cfware.com>
Tue, 13 Feb 2018 04:04:26 +0000 (23:04 -0500)
Change-Id: I7e2996397fbd3c3a6a69dd805c38448ddfc34ae9

main/asterisk.c

index d2230dc4d62a8c3b95395bb42c839df6ca8bec4a..870e5510ac8660adc56555267456479bb144ec29 100644 (file)
@@ -1160,11 +1160,12 @@ 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;
 
        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)