Skip to content

Commit

Permalink
fix: close file
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored May 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 15b4445 commit 00b4610
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gapis/perfetto/android/trace.go
Original file line number Diff line number Diff line change
@@ -201,5 +201,6 @@ func (p *Process) Capture(ctx context.Context, start task.Signal, stop task.Sign
if err != nil {
return 0, log.Err(ctx, err, fmt.Sprintf("Failed to open %s", tmp))
}
defer fh.Close()
return io.Copy(w, fh)
}

0 comments on commit 00b4610

Please sign in to comment.