summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authortiptorrent development team <tiptorrent@soleta.eu>2021-12-23 21:02:38 +0100
committertiptorrent development team <tiptorrent@soleta.eu>2021-12-23 21:03:02 +0100
commite9de4e482f225b2987ab0368cea2fae835b4967e (patch)
tree23f5bf98f4fd6ffe18a4aec99ab3e0c3124470b5 /src/main.c
parent35f3191e4c5b3c7d0df425c7c8b82fea4df66b74 (diff)
missing close() on file on exit path
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
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);