forked from RepoMirrors/btrfs
1
0
Fork 0

fix fd leak

This commit is contained in:
Denys Smirnov 2016-10-01 14:44:34 +03:00
parent 41809caf7d
commit 7eae92f571
1 changed files with 1 additions and 0 deletions

View File

@ -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)
}