pkg/terminal: add missing file.Close() call (#3770)

This commit is contained in:
Oleksandr Redko 2024-07-11 18:06:16 +03:00 committed by GitHub
parent a151be7eca
commit a3e4a41468
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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)