Mesa (master): wsi/x11: Always free randr_reply in wsi_x11_connection_create

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jan 11 14:09:52 UTC 2021


Module: Mesa
Branch: master
Commit: 6286a3b4f6357f4853f91ab76c6d80b41215ca8d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6286a3b4f6357f4853f91ab76c6d80b41215ca8d

Author: Michel Dänzer <mdaenzer at redhat.com>
Date:   Fri Jan  8 18:54:09 2021 +0100

wsi/x11: Always free randr_reply in wsi_x11_connection_create

Fixes memory leak.

Fixes: b5268d532a01 "wsi/x11: Detect Xwayland"
Reviewed-by: Adam Jackson <ajax at redhat.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Tested-by: Dieter Nützel <Dieter at nuetzel-hh.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8393>

---

 src/vulkan/wsi/wsi_common_x11.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c
index 95bf7504db7..3b6884d37ab 100644
--- a/src/vulkan/wsi/wsi_common_x11.c
+++ b/src/vulkan/wsi/wsi_common_x11.c
@@ -249,6 +249,7 @@ wsi_x11_connection_create(struct wsi_device *wsi_dev,
 
    free(dri3_reply);
    free(pres_reply);
+   free(randr_reply);
    free(amd_reply);
    free(nv_reply);
 



More information about the mesa-commit mailing list