From ee5c02f72ae17e8fa94701c102f64b6c6b7a7db5 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 11 Nov 2023 11:45:25 +1100 Subject: [PATCH] [client] egl: fix potential resource leak --- client/renderers/EGL/framebuffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/renderers/EGL/framebuffer.c b/client/renderers/EGL/framebuffer.c index 63df950d..667354c6 100644 --- a/client/renderers/EGL/framebuffer.c +++ b/client/renderers/EGL/framebuffer.c @@ -43,6 +43,7 @@ bool egl_framebufferInit(EGL_Framebuffer ** fb) if (!egl_textureInit(&this->tex, NULL, EGL_TEXTYPE_BUFFER)) { DEBUG_ERROR("Failed to initialize the texture"); + free(this); return false; }