missing close() on file on exit path

master
tiptorrent development team 2021-12-23 21:02:38 +01:00
parent 35f3191e4c
commit e9de4e482f
1 changed files with 1 additions and 0 deletions

View File

@ -581,6 +581,7 @@ int main(int argc, char *argv[])
file_chunk[k] = true; file_chunk[k] = true;
data_len += _cli.data_len; data_len += _cli.data_len;
} }
close(fd);
err: err:
gettimeofday(&tv_stop, NULL); gettimeofday(&tv_stop, NULL);
timersub(&tv_stop, &tv_start, &tv); timersub(&tv_stop, &tv_start, &tv);