wlroots/xwayland
Wang Yu d834de6167 xwayland: fix memory leak on pipe() failure
When pipe() fails in xwm_selection_send_data(), the function
returns without cleaning up the allocated transfer structure
and initialized wl_array. This causes a memory leak.

Add wl_array_release() and free() to clean up resources when
pipe() fails.

Signed-off-by: Wang Yu <wangyu@uniontech.com>
(cherry picked from commit a55b85e2e1)
2026-03-06 09:48:36 -05:00
..
selection xwayland: fix memory leak on pipe() failure 2026-03-06 09:48:36 -05:00
meson.build xwayland: enable use of a xserver subproject 2023-05-04 18:02:32 +00:00
server.c Revert "xwayland: Reset signal mask and handlers before exec" 2025-04-20 21:12:33 +02:00
shell.c Assert (almost all) signals have no attached listeners on destroy 2025-01-15 19:53:11 +03:00
sockets.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
sockets.h Add some missing includes/declarations 2023-06-05 21:06:19 +00:00
xwayland.c xwm: Fix double-close 2025-10-21 10:25:40 -04:00
xwm.c xwm: Fix double-close 2025-10-21 10:25:40 -04:00