output: fix DEREF_AFTER_NULL issue 13/266613/1
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>
Wed, 9 Jun 2021 04:41:05 +0000 (13:41 +0900)
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;