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;