mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-16 09:46:55 +00:00
btrfs-progs: receive: don't leak open find handle
Resolves-coverity-id: 1348121 Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
7faf96e30a
commit
3f248d2431
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user