diff --git a/send.go b/send.go index bfd6046..356cd3e 100644 --- a/send.go +++ b/send.go @@ -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) }