btrfs-progs: close ioctl fd in find new
authorZach Brown <zab@redhat.com>
Wed, 23 Jan 2013 23:15:09 +0000 (15:15 -0800)
committerZach Brown <zab@redhat.com>
Wed, 6 Feb 2013 00:09:40 +0000 (16:09 -0800)
Signed-off-by: Zach Brown <zab@redhat.com>
cmds-subvolume.c

index 2fce7af..a87bcc5 100644 (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;