diff options
author | bi4k8 <bi4k8-js7gse3b01w@mt2015.com> | 2022-06-11 20:08:17 +0000 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-06-12 06:55:06 +0000 |
commit | 369c6525d798f78231b4ce5830d30af85c7c5997 (patch) | |
tree | 3494ad04a902864e8cae0195127bfc9e5eb16ffd | |
parent | f295aff7629eed3a059438a6f404950b939ea0c0 (diff) |
render/egl: don't leak memory on error return
-rw-r--r-- | render/egl.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |