Merge branch 'fix/memory-leak-pipe-failure' into 'master'

xwayland: fix memory leak on pipe() failure

See merge request wlroots/wlroots!5280
This commit is contained in:
yu wang 2026-03-03 06:48:18 +00:00
commit 5d34fa5b27

View file

@ -283,6 +283,8 @@ static bool xwm_selection_send_data(struct wlr_xwm_selection *selection,
int p[2];
if (pipe(p) == -1) {
wlr_log_errno(WLR_ERROR, "pipe() failed");
wl_array_release(&transfer->source_data);
free(transfer);
return false;
}