Skip to content

Commit

Permalink
chore: fix order of Release() and Close() defers
Browse files Browse the repository at this point in the history
  • Loading branch information
DStrand1 committed Oct 13, 2021
1 parent 59fe8e5 commit c9093c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/influx_inspect/dumptsi/dumptsi.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ func (cmd *Command) run() error {

// If this is an ad-hoc fileset then process it and close afterward.
if fs != nil {
defer fs.Release()
defer fs.Close()
defer fs.Release()
if cmd.showSeries || cmd.showMeasurements {
return cmd.printMeasurements(sfile, fs)
}
Expand Down

0 comments on commit c9093c4

Please sign in to comment.