output: fix DEREF_AFTER_NULL issue 17/266617/2
authorSung-Jin Park <sj76.park@samsung.com>
Wed, 9 Jun 2021 04:10:48 +0000 (13:10 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 16 Nov 2021 09:19:18 +0000 (09:19 +0000)
Change-Id: I20b66908cf2ca43ad3f6f3b5fe4d5a67ffeddc4f
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/output/output_led.c

index 49eab15..24931d1 100644 (file)
@@ -301,7 +301,7 @@ headless_output_init(pepper_compositor_t *compositor)
 
        if (!output) {
                PEPPER_ERROR("Failed to allocate memory in %s\n", __FUNCTION__);
-               goto error;
+               return PEPPER_FALSE;
        }
 
        output->compositor = compositor;