Fix memory leak 95/215695/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 14 Oct 2019 09:03:08 +0000 (18:03 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 14 Oct 2019 09:03:08 +0000 (18:03 +0900)
Change-Id: I6d578e5c9313bc0873c4e46ca5278f9915838d6a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
frame-broker/src/frame.c

index 1fc0aeb..b5a1de1 100644 (file)
@@ -88,6 +88,7 @@ int frame_create(Evas_Object *image,
 
        if (!frame->extra_data) {
                _E("Failed to create extra data");
+               frame_destroy(frame);
                return FRAME_BROKER_ERROR_OUT_OF_MEMORY;
        }