Skip to content

Commit

Permalink
Merge pull request #22 from parca-dev/close
Browse files Browse the repository at this point in the history
Correctly close tar and zstd writers
  • Loading branch information
brancz authored May 21, 2024
2 parents 0b5c2ff + f450fe9 commit 2aed700
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/parca-debuginfo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,10 @@ func run(kongCtx *kong.Context, flags flags) error {
if err != nil {
return fmt.Errorf("create zstd writer: %w", err)
}
defer zw.Close()

tw := tar.NewWriter(zw)
defer tw.Close()

d, err := f.DWARF()
if err != nil {
Expand Down

0 comments on commit 2aed700

Please sign in to comment.