summaryrefslogtreecommitdiff
path: root/cmds-subvolume.c
diff options
context:
space:
mode:
authorZach Brown <zab@redhat.com>2013-01-23 15:15:09 -0800
committerZach Brown <zab@redhat.com>2013-02-05 16:09:40 -0800
commitceb538f178b2407a25458b40c134aa5816e7b5c6 (patch)
tree97b3ed21b19a7e7d9fcaaa00aabac14da15303b2 /cmds-subvolume.c
parent4cce2094b18ab674c707d5c9f747d71874076d2c (diff)
btrfs-progs: close ioctl fd in find new
Signed-off-by: Zach Brown <zab@redhat.com>
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r--cmds-subvolume.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c
index 2fce7aff..a87bcc5a 100644
--- a/cmds-subvolume.c
+++ b/cmds-subvolume.c
@@ -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;