From 6286a3b4f6357f4853f91ab76c6d80b41215ca8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 8 Jan 2021 18:54:09 +0100 Subject: [PATCH] wsi/x11: Always free randr_reply in wsi_x11_connection_create MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes memory leak. Fixes: b5268d532a01 "wsi/x11: Detect Xwayland" Reviewed-by: Adam Jackson Reviewed-by: Bas Nieuwenhuizen Tested-by: Dieter Nützel Part-of: --- 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);