Skip to content

Commit

Permalink
Close the read end of a pipe
Browse files Browse the repository at this point in the history
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
  • Loading branch information
mtrmac committed Nov 28, 2023
1 parent ddbd4b1 commit 215a38e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oci/archive/oci_dest.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func tarDirectory(src, dst string) error {
if err != nil {
return fmt.Errorf("retrieving stream of bytes from %q: %w", src, err)
}
defer input.Close()

// creates the tar file
outFile, err := os.Create(dst)
Expand Down

0 comments on commit 215a38e

Please sign in to comment.