missing close() on file on exit path
parent
35f3191e4c
commit
e9de4e482f
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue