diff --git a/render/egl.c b/render/egl.c index d5d6cfb7..81ce3b26 100644 --- a/render/egl.c +++ b/render/egl.c @@ -440,6 +440,7 @@ static EGLDeviceEXT get_egl_device_from_drm_fd(struct wlr_egl *egl, } } + drmFreeDevice(&device); free(devices); return egl_device;