From b4e10616fee88f13e058ba725a8fc7459fbba261 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 17 Nov 2025 22:00:57 +0900 Subject: [PATCH] internal/wayland: do not double close fd These are already closed during securityContextBindPipe on a non-nil error. Signed-off-by: Ophestra --- internal/wayland/conn.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/wayland/conn.go b/internal/wayland/conn.go index 4a4428b..0460629 100644 --- a/internal/wayland/conn.go +++ b/internal/wayland/conn.go @@ -53,8 +53,6 @@ func New(displayPath, bindPath *check.Absolute, appID, instanceID string) (*Secu if bindErr != nil { // do not leak the pipe and socket err = errors.Join(bindErr, // already wrapped - syscall.Close(closeFds[1]), - syscall.Close(closeFds[0]), syscall.Close(fd), ) }