From e9de4e482f225b2987ab0368cea2fae835b4967e Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Thu, 23 Dec 2021 21:02:38 +0100 Subject: missing close() on file on exit path --- src/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/main.c b/src/main.c index f6334e0..88e5bd8 100644 --- a/src/main.c +++ b/src/main.c @@ -581,6 +581,7 @@ int main(int argc, char *argv[]) file_chunk[k] = true; data_len += _cli.data_len; } + close(fd); err: gettimeofday(&tv_stop, NULL); timersub(&tv_stop, &tv_start, &tv); -- cgit v1.2.3-18-g5258