Skip to content

Commit

Permalink
[tools] Close the reader in read_data_files (#3473)
Browse files Browse the repository at this point in the history
  • Loading branch information
linasm authored May 6, 2021
1 parent f75f3e2 commit 824d4a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cmd/tools/read_data_files/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,8 @@ func main() {
fmt.Printf("\nTotal annotation size: %d bytes\n", annotationSizeTotal) // nolint: forbidigo
}
}

if err := reader.Close(); err != nil {
log.Fatalf("unable to close reader: %v", err)
}
}

0 comments on commit 824d4a9

Please sign in to comment.