commit | 1e0c184e7cf03c8126e6e8dff4c45584283e6b9b | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Mar 20 15:15:00 2012 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Mar 20 15:15:00 2012 +0100 |
tree | c9458998a720116f225fe08cabf1affd8b00eec9 | |
parent | 8c95307bd5f72720460ee4a46519b9a1b474e7cd [diff] |
client: don't leak file descriptor on exit Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/client.c b/client.c index b553b05..86ac8f4 100644 --- a/client.c +++ b/client.c
@@ -131,6 +131,9 @@ fio_client_dec_jobs_eta(client->eta_in_flight, client->ops->eta); } + close(client->fd); + client->fd = -1; + nr_clients--; sum_stat_clients--;