From 8da364d8faba4f9575f7cc31dc566d86d60e30e3 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Mon, 22 Aug 2022 09:57:20 +0100 Subject: [PATCH] wsi/x11: fix memleak in wsi_x11_connection_create() Fixes: bbdf7e45b15f6345c5e5 ("wsi/x11: Hook up KHR_incremental_present") Signed-off-by: Eric Engestrom Reviewed-by: Adam Jackson Part-of: (cherry picked from commit 20fba14f2cb34060ecae42634bfe8c266f56952f) --- .pick_status.json | 2 +- src/vulkan/wsi/wsi_common_x11.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 77df5985206..2371a5e075d 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -12379,7 +12379,7 @@ "description": "wsi/x11: fix memleak in wsi_x11_connection_create()", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "bbdf7e45b15f6345c5e509827770aec8a8bdfe7c" }, diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c index 30bd10c08c9..f8eca40d630 100644 --- a/src/vulkan/wsi/wsi_common_x11.c +++ b/src/vulkan/wsi/wsi_common_x11.c @@ -331,6 +331,7 @@ wsi_x11_connection_create(struct wsi_device *wsi_dev, free(randr_reply); free(amd_reply); free(nv_reply); + free(xfixes_reply); if (wants_shm) free(shm_reply);