From cf3635fa07bf6f3949cb41a76f5e6ce7b09a5dd1 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Fri, 5 Dec 2025 16:29:30 +0100 Subject: [PATCH] egl/x11: Fix memory leak when querying translated coord. Signed-off-by: Hans-Kristian Arntzen Cc: mesa-stable (cherry picked from commit c00ae6858564920182b3270c89ae307b35ef8cf6) Part-of: --- .pick_status.json | 2 +- src/egl/drivers/dri2/platform_x11.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 9164cc69355..50385979015 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1154,7 +1154,7 @@ "description": "egl/x11: Fix memory leak when querying translated coord.", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index 28acf735fa9..25d6ed20754 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -873,6 +873,8 @@ dri2_x11_get_msc_rate(_EGLDisplay *display, _EGLSurface *surface, * We defaulted to the first CRTC in the list's refresh rate, earlier. */ + free(reply); + return EGL_TRUE; }