From 369c6525d798f78231b4ce5830d30af85c7c5997 Mon Sep 17 00:00:00 2001 From: bi4k8 Date: Sat, 11 Jun 2022 20:08:17 +0000 Subject: render/egl: don't leak memory on error return --- render/egl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/render/egl.c b/render/egl.c index dfba8edd..168e358c 100644 --- a/render/egl.c +++ b/render/egl.c @@ -552,6 +552,7 @@ struct wlr_egl *wlr_egl_create_with_context(EGLDisplay display, } if (!egl_init_display(egl, display)) { + free(egl); return NULL; } -- cgit v1.2.3