pkg/terminal: add missing file.Close() call (#3770)
This commit is contained in:
parent
a151be7eca
commit
a3e4a41468
@ -3123,6 +3123,7 @@ func (c *Commands) onCmd(t *Term, ctx callContext, argstr string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
defer func() {
|
defer func() {
|
||||||
|
_ = f.Close()
|
||||||
_ = os.Remove(f.Name())
|
_ = os.Remove(f.Name())
|
||||||
}()
|
}()
|
||||||
attrs := formatBreakpointAttrs("", ctx.Breakpoint, true)
|
attrs := formatBreakpointAttrs("", ctx.Breakpoint, true)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user