From a3e4a41468bbcf6d4b867961d3919c46ba9b8f85 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Thu, 11 Jul 2024 18:06:16 +0300 Subject: [PATCH] pkg/terminal: add missing file.Close() call (#3770) --- pkg/terminal/command.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/terminal/command.go b/pkg/terminal/command.go index 1a1c399c..5af30ad3 100644 --- a/pkg/terminal/command.go +++ b/pkg/terminal/command.go @@ -3123,6 +3123,7 @@ func (c *Commands) onCmd(t *Term, ctx callContext, argstr string) error { return err } defer func() { + _ = f.Close() _ = os.Remove(f.Name()) }() attrs := formatBreakpointAttrs("", ctx.Breakpoint, true)