mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-07 21:30:34 +01:00
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:
commit
5d34fa5b27
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue