Mesa (main): wsi/x11: Don't leak xcb_get_geometry_reply_t.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun May 8 13:09:31 UTC 2022


Module: Mesa
Branch: main
Commit: 24049b8771be7bd9044e005565ab9dc327e9dd63
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=24049b8771be7bd9044e005565ab9dc327e9dd63

Author: Georg Lehmann <dadschoorse at gmail.com>
Date:   Sun May  8 01:30:42 2022 +0200

wsi/x11: Don't leak xcb_get_geometry_reply_t.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6443
Fixes: 44a20baeb8b ("wsi/x11: Avoid using xcb_wait_for_special_event in FIFO modes")
Signed-off-by: Georg Lehmann <dadschoorse at gmail.com>
Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16384>

---

 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 1c387abcc4b..099735dd9f3 100644
--- a/src/vulkan/wsi/wsi_common_x11.c
+++ b/src/vulkan/wsi/wsi_common_x11.c
@@ -1537,6 +1537,7 @@ x11_manage_fifo_queues(void *state)
                result = VK_ERROR_SURFACE_LOST_KHR;
                goto fail;
             }
+            free(geometry);
          }
       }
    }



More information about the mesa-commit mailing list