client: don't leak file descriptor on exit
authorJens Axboe <axboe@kernel.dk>
Tue, 20 Mar 2012 14:15:00 +0000 (15:15 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Mar 2012 14:15:00 +0000 (15:15 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
client.c

index b553b05..86ac8f4 100644 (file)
--- a/client.c
+++ b/client.c
@@ -131,6 +131,9 @@ static void remove_client(struct fio_client *client)
                fio_client_dec_jobs_eta(client->eta_in_flight, client->ops->eta);
        }
 
+       close(client->fd);
+       client->fd = -1;
+
        nr_clients--;
        sum_stat_clients--;