btrfs-progs: close ioctl fd in find new

Signed-off-by: Zach Brown <zab@redhat.com>
This commit is contained in:
Zach Brown 2013-01-23 15:15:09 -08:00
parent 4cce2094b1
commit ceb538f178

View File

@ -764,6 +764,7 @@ static int cmd_find_new(int argc, char **argv)
return 12;
}
ret = btrfs_list_find_updated_files(fd, 0, last_gen);
close(fd);
if (ret)
return 19;
return 0;