Skip to content

Commit a3e4a41

Browse files
authored
pkg/terminal: add missing file.Close() call (#3770)
1 parent a151be7 commit a3e4a41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎pkg/terminal/command.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3123,6 +3123,7 @@ func (c *Commands) onCmd(t *Term, ctx callContext, argstr string) error {
31233123
return err
31243124
}
31253125
defer func() {
3126+
_ = f.Close()
31263127
_ = os.Remove(f.Name())
31273128
}()
31283129
attrs := formatBreakpointAttrs("", ctx.Breakpoint, true)

0 commit comments

Comments
 (0)