egl/x11: Fix memory leak when querying translated coord.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Cc: mesa-stable
(cherry picked from commit c00ae68585)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39003>
This commit is contained in:
Hans-Kristian Arntzen 2025-12-05 16:29:30 +01:00 committed by Dylan Baker
parent a6f2db03cd
commit cf3635fa07
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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;
}