btrfs-progs: fix fd leak in get_subvol_info

A typo, introduced in "btrfs-progs: create get_subvol_info()".

Resolves-coverity-id: 1357106
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2016-03-24 19:31:33 +01:00
parent 91b70d4cf1
commit 5595263cb6
1 changed files with 1 additions and 1 deletions

View File

@ -3236,7 +3236,7 @@ int get_subvol_info(const char *fullpath, struct root_info *get_ri)
out:
close_file_or_dir(mntfd, dirstream2);
close_file_or_dir(mntfd, dirstream1);
close_file_or_dir(fd, dirstream1);
free(mnt);
return ret;