btrfs-progs: receive: don't leak open find handle

Resolves-coverity-id: 1348121
Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2016-01-14 09:40:24 +01:00
parent 7faf96e30a
commit 3f248d2431
1 changed files with 2 additions and 0 deletions

View File

@ -1266,6 +1266,8 @@ int cmd_receive(int argc, char **argv)
}
ret = do_receive(&r, tomnt, realmnt, receive_fd, max_errors);
if (receive_fd != fileno(stdin))
close(receive_fd);
out: