Skip to content

Commit

Permalink
fix fd leak
Browse files Browse the repository at this point in the history
  • Loading branch information
dennwc committed Oct 1, 2016
1 parent 41809ca commit 7eae92f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions send.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func Send(w io.Writer, parent string, subvols ...string) error {
flags |= _BTRFS_SEND_FLAG_OMIT_END_CMD
}
err = send(w, fs.f, parentID, cloneSrc, flags)
fs.Close()
if err != nil {
return fmt.Errorf("error sending %s: %v", sub, err)
}
Expand Down

0 comments on commit 7eae92f

Please # to comment.